mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-07-05 07:02:51 +02:00
Fixed broken graphs with missing time data handling
This commit is contained in:
@ -234,7 +234,8 @@ void GraphItem::updateBounds()
|
||||
}
|
||||
}
|
||||
|
||||
_bounds = QRectF(QPointF(left, top), QPointF(right, bottom));
|
||||
QRectF bounds(QPointF(left, top), QPointF(right, bottom));
|
||||
_bounds = bounds.isValid() ? bounds : QRectF();
|
||||
}
|
||||
|
||||
qreal GraphItem::max() const
|
||||
|
Reference in New Issue
Block a user