mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
Changed tolerance to make topological editing more reliable (related to ticket #2921)
git-svn-id: http://svn.osgeo.org/qgis/trunk@15741 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
parent
fbd10b55e9
commit
c1a768a15a
@ -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 );
|
||||
|
Loading…
x
Reference in New Issue
Block a user