mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-27 21:24:47 +01:00
Added proper check for empty graph view.
This commit is contained in:
parent
b95fb80210
commit
29fe054d57
@ -245,7 +245,7 @@ void GraphView::redraw(const QSizeF &size)
|
||||
qreal xs, ys;
|
||||
|
||||
|
||||
if (_visible.isEmpty()) {
|
||||
if (_visible.isEmpty() || _bounds.isNull()) {
|
||||
removeItem(_xAxis);
|
||||
removeItem(_yAxis);
|
||||
removeItem(_slider);
|
||||
|
Loading…
Reference in New Issue
Block a user