Skip to content
Permalink
Browse files
Behave better when zooming to selection when the selection is a singl…
…e point

git-svn-id: http://svn.osgeo.org/qgis/trunk@5538 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
g_j_m committed Jun 23, 2006
1 parent eee6c56 commit 57a21ca723db97380c13fc2b2867ce1ea7c7eddb
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/gui/qgsvectorlayer.cpp
@@ -1381,7 +1381,7 @@ QgsRect QgsVectorLayer::bBoxOfSelected()
}
else
{
const double padFactor = 0.05;
const double padFactor = 1e-8;
double widthPad = retval.xMin() * padFactor;
double heightPad = retval.yMin() * padFactor;
double xmin = retval.xMin() - widthPad;

0 comments on commit 57a21ca

Please sign in to comment.