This is a bug in Qwt, but you can work around it easily:
virtual ContourLines YourRasterData::contourLines(
const QwtDoubleRect &rect,
const QSize &raster,
const QList<double>
&levels,
int flags) const
{
QwtDoubleRect area = rect;
if ( boundingRect().isValid() )
area &= boundingRect();
}
virtual ContourLines YourRasterData::contourLines(
const QwtDoubleRect &rect,
const QSize &raster, const QList<double> &levels,
int flags) const
{
QwtDoubleRect area = rect;
if ( boundingRect().isValid() )
area &= boundingRect();
return QwtRasterData::contourLines(area, raster, levels flags);
}
To copy to clipboard, switch view to plain text mode
Or you can use the code from SVN ( 5.2 branch ).
Uwe
Bookmarks