Skip to content

Commit 97bf5e7

Browse files
author
mhugent
committedApr 17, 2011
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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/core/qgspoint.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ double QgsPoint::sqrDistToSegment( double x1, double y1, double x2, double y2, Q
275275

276276
double dist = sqrDist( minDistPoint );
277277
//prevent rounding errors if the point is directly on the segment
278-
if ( doubleNear( dist, 0.0 ) )
278+
if ( doubleNear( dist, 0.0, 0.000000001 ) )
279279
{
280280
minDistPoint.setX( m_x );
281281
minDistPoint.setY( m_y );

0 commit comments

Comments
 (0)
Please sign in to comment.