mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
Keep zoom level constant if zooming to one selected point
This commit is contained in:
parent
71b882527a
commit
15e3fc3509
@ -746,7 +746,7 @@ void QgsMapCanvas::zoomToSelected( QgsVectorLayer* layer )
|
||||
// zoom in
|
||||
QgsPoint c = rect.center();
|
||||
rect = extent();
|
||||
rect.scale( 0.5, &c );
|
||||
rect.scale( 1.0, &c );
|
||||
}
|
||||
//zoom to an area
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user