Skip to content

Commit

Permalink
Update src/core/geometry/qgsgeos.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Sep 29, 2023
1 parent 93f4b0c commit 24f0cb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/geometry/qgsgeos.cpp
Expand Up @@ -1068,7 +1068,7 @@ geos::unique_ptr QgsGeos::linePointDifference( GEOSGeometry *GEOSsplitPoint ) co

// The intersection might belong to another part, skip it
// Note: cannot test for equality because of Z
if ( intersectionPoint->x() != segmentPoint2D.x() || intersectionPoint->y() != segmentPoint2D.y() )
if ( !qgsDoubleNear( intersectionPoint->x(), segmentPoint2D.x() ) || !qgsDoubleNear( intersectionPoint->y(), segmentPoint2D.y() ) )
{
continue;
}
Expand Down

0 comments on commit 24f0cb6

Please sign in to comment.