The fix excludes empty rectangles that you get f.e from markers or curves with one point ( or a horizontal or vertical line ).
Instead it needs to be:
const QRectF rect
= item
->boundingRect
();
if ( rect.width() >= 0.0 )
intv[item->xAxis()] |= QwtInterval( rect.left(), rect.right() );
if ( rect.height() >= 0.0 )
intv[item->yAxis()] |= QwtInterval( rect.top(), rect.bottom() );
const QRectF rect = item->boundingRect();
if ( rect.width() >= 0.0 )
intv[item->xAxis()] |= QwtInterval( rect.left(), rect.right() );
if ( rect.height() >= 0.0 )
intv[item->yAxis()] |= QwtInterval( rect.top(), rect.bottom() );
To copy to clipboard, switch view to plain text mode
Fixed in SVN ( trunk and 6.0 ),
Uwe
Bookmarks