mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Qwt fix. Fix plotting of interval series having only one sample
This commit is contained in:
parent
2dd8744743
commit
08ad8a98db
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user