mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-01-18 11:52:08 +01:00
Fixed crash when zooming with no track loaded.
This commit is contained in:
parent
69c62ffdc3
commit
0374e59bce
@ -205,6 +205,9 @@ void Track::redraw()
|
||||
|
||||
void Track::wheelEvent(QWheelEvent *event)
|
||||
{
|
||||
if (_tracks.isEmpty())
|
||||
return;
|
||||
|
||||
QPointF pos = mapToScene(event->pos());
|
||||
qreal scale = _scale;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user