Qwt fix. Fix plotting of interval series having only one sample

This commit is contained in:
Bjørn Erik Jensen 2018-07-04 09:15:29 +02:00
parent 2dd8744743
commit 08ad8a98db

View File

@ -298,7 +298,7 @@ const QBrush& QwtPlotIntervalCurve::brush() const
QRectF QwtPlotIntervalCurve::boundingRect() const
{
QRectF rect = QwtPlotSeriesItem::boundingRect();
if ( rect.isValid() && orientation() == Qt::Vertical )
if ( rect.width() >= 0.0 && rect.height() >= 0.0 && orientation() == Qt::Vertical )
rect.setRect( rect.y(), rect.x(), rect.height(), rect.width() );
return rect;