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:
parent
b95fb80210
commit
29fe054d57
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user