Skip to content

Commit

Permalink
Behave better when zooming to selection when the selection is a singl…
Browse files Browse the repository at this point in the history
…e point

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5538 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
g_j_m committed Jun 23, 2006
1 parent 6eeaa51 commit a0cf5e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/qgsvectorlayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a0cf5e3

Please sign in to comment.