Skip to content

Commit a0cf5e3

Browse files
author
g_j_m
committed
Behave better when zooming to selection when the selection is a single point
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5538 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 6eeaa51 commit a0cf5e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gui/qgsvectorlayer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1381,7 +1381,7 @@ QgsRect QgsVectorLayer::bBoxOfSelected()
13811381
}
13821382
else
13831383
{
1384-
const double padFactor = 0.05;
1384+
const double padFactor = 1e-8;
13851385
double widthPad = retval.xMin() * padFactor;
13861386
double heightPad = retval.yMin() * padFactor;
13871387
double xmin = retval.xMin() - widthPad;

0 commit comments

Comments
 (0)