Skip to content

Commit 870c61a

Browse files
author
g_j_m
committed
Use a more appropriate QgsRect modify function
git-svn-id: http://svn.osgeo.org/qgis/trunk@5289 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 4fabdaa commit 870c61a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gui/qgsmapcanvas.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ void QgsMapCanvas::zoomToSelected()
515515
{
516516
// Expand rect to give a bit of space around the selected
517517
// objects so as to keep them clear of the map boundaries
518-
rect.expand(1.1);
518+
rect.scale(1.1);
519519
setExtent(rect);
520520
refresh();
521521
return;

0 commit comments

Comments
 (0)