mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-06-27 11:39:16 +02:00
Graphs with zero size height are valid
This commit is contained in:
@ -234,8 +234,10 @@ void GraphItem::updateBounds()
|
||||
}
|
||||
}
|
||||
|
||||
QRectF bounds(QPointF(left, top), QPointF(right, bottom));
|
||||
_bounds = bounds.isValid() ? bounds : QRectF();
|
||||
if (left == right)
|
||||
_bounds = QRectF();
|
||||
else
|
||||
_bounds = QRectF(QPointF(left, top), QPointF(right, bottom));
|
||||
}
|
||||
|
||||
qreal GraphItem::max() const
|
||||
|
Reference in New Issue
Block a user