mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-24 11:45:53 +01:00
Resize optimization
This commit is contained in:
parent
5a8250ed63
commit
371fa13bc6
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user