Use a more appropriate QgsRect modify function

git-svn-id: http://svn.osgeo.org/qgis/trunk@5289 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
g_j_m 2006-04-16 04:54:01 +00:00
parent 4fabdaadc2
commit 870c61aeb1

View File

@ -515,7 +515,7 @@ void QgsMapCanvas::zoomToSelected()
{
// Expand rect to give a bit of space around the selected
// objects so as to keep them clear of the map boundaries
rect.expand(1.1);
rect.scale(1.1);
setExtent(rect);
refresh();
return;