1
0
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:
2019-10-27 19:53:32 +01:00
parent e6b205e823
commit a1de3c956c
2 changed files with 8 additions and 2 deletions

View File

@ -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