Skip to content
Permalink
Browse files
Changed tolerance to make topological editing more reliable (related …
…to ticket #2921)

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@15741 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Apr 17, 2011
1 parent 791ca3b commit 97bf5e7ff2ab2ee5b0017765c8b56ee64550df4c
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/qgspoint.cpp
@@ -275,7 +275,7 @@ double QgsPoint::sqrDistToSegment( double x1, double y1, double x2, double y2, Q

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 );

0 comments on commit 97bf5e7

Please sign in to comment.