mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-01-18 19:52:09 +01:00
Graphs with zero size height are valid
This commit is contained in:
parent
a1de3c956c
commit
725bb8a381
@ -234,8 +234,10 @@ void GraphItem::updateBounds()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
QRectF bounds(QPointF(left, top), QPointF(right, bottom));
|
if (left == right)
|
||||||
_bounds = bounds.isValid() ? bounds : QRectF();
|
_bounds = QRectF();
|
||||||
|
else
|
||||||
|
_bounds = QRectF(QPointF(left, top), QPointF(right, bottom));
|
||||||
}
|
}
|
||||||
|
|
||||||
qreal GraphItem::max() const
|
qreal GraphItem::max() const
|
||||||
|
Loading…
x
Reference in New Issue
Block a user