1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-24 03:35:53 +01:00

Fixed crash when zooming with no track loaded.

This commit is contained in:
Martin Tůma 2015-12-19 12:57:09 +01:00
parent 69c62ffdc3
commit 0374e59bce

View File

@ -205,6 +205,9 @@ void Track::redraw()
void Track::wheelEvent(QWheelEvent *event)
{
if (_tracks.isEmpty())
return;
QPointF pos = mapToScene(event->pos());
qreal scale = _scale;