mirror of
https://github.com/OPM/ResInsight.git
synced 2026-11-03 20:56:45 -06:00
Qwt fix. Fix plotting of interval series having only one sample
This commit is contained in:
1 parent
2dd8744743
commit
08ad8a98db
1 file changed
+1
-1
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user