1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2025-02-26 04:00:49 +01:00

Added proper check for empty graph view.

This commit is contained in:
Martin Tůma 2016-09-27 01:29:35 +02:00
parent b95fb80210
commit 29fe054d57

View File

@ -245,7 +245,7 @@ void GraphView::redraw(const QSizeF &size)
qreal xs, ys; qreal xs, ys;
if (_visible.isEmpty()) { if (_visible.isEmpty() || _bounds.isNull()) {
removeItem(_xAxis); removeItem(_xAxis);
removeItem(_yAxis); removeItem(_yAxis);
removeItem(_slider); removeItem(_slider);