Keep zoom level constant if zooming to one selected point

This commit is contained in:
Marco Hugentobler 2013-06-07 16:03:12 +02:00
parent 71b882527a
commit 15e3fc3509

View File

@ -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