1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-10-06 14:53:21 +02:00

Resize optimization

This commit is contained in:
Martin Tůma 2016-11-12 09:09:42 +01:00
parent 5a8250ed63
commit 371fa13bc6

View File

@ -391,9 +391,12 @@ void PathView::redraw()
void PathView::rescale() void PathView::rescale()
{ {
_zoom = scale2zoom(contentsScale()); int zoom = scale2zoom(contentsScale());
rescale(_zoom);
_mapScale->setZoom(_zoom); if (zoom != _zoom) {
rescale(zoom);
_mapScale->setZoom(zoom);
}
} }
void PathView::zoom(int z, const QPoint &pos) void PathView::zoom(int z, const QPoint &pos)