1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-24 11:45:53 +01: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()
{
_zoom = scale2zoom(contentsScale());
rescale(_zoom);
_mapScale->setZoom(_zoom);
int zoom = scale2zoom(contentsScale());
if (zoom != _zoom) {
rescale(zoom);
_mapScale->setZoom(zoom);
}
}
void PathView::zoom(int z, const QPoint &pos)