[QGIS Commit] r15741 - trunk/qgis/src/core
svn_qgis at osgeo.org
svn_qgis at osgeo.org
Sun Apr 17 06:01:42 EDT 2011
Author: mhugent
Date: 2011-04-17 03:01:42 -0700 (Sun, 17 Apr 2011)
New Revision: 15741
Modified:
trunk/qgis/src/core/qgspoint.cpp
Log:
Changed tolerance to make topological editing more reliable (related to ticket #2921)
Modified: trunk/qgis/src/core/qgspoint.cpp
===================================================================
--- trunk/qgis/src/core/qgspoint.cpp 2011-04-17 07:58:16 UTC (rev 15740)
+++ trunk/qgis/src/core/qgspoint.cpp 2011-04-17 10:01:42 UTC (rev 15741)
@@ -275,7 +275,7 @@
double dist = sqrDist( minDistPoint );
//prevent rounding errors if the point is directly on the segment
- if ( doubleNear( dist, 0.0 ) )
+ if ( doubleNear( dist, 0.0, 0.000000001 ) )
{
minDistPoint.setX( m_x );
minDistPoint.setY( m_y );
More information about the QGIS-commit
mailing list