Skip to content
Permalink
Browse files

fix geometry validator

Fixes #39770
  • Loading branch information
vcloarec authored and nyalldawson committed Nov 4, 2020
1 parent 6d52771 commit 9fbe87202dd1920e1b9bf6324abefbe68c9a3d0d
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/core/qgsgeometryvalidator.cpp
@@ -65,8 +65,8 @@ void QgsGeometryValidator::checkRingIntersections( int p0, int i0, const QgsLine
{
d = -distLine2Point( ring1XAtj, ring1YAtj, w.perpVector(), sX, sY );
if ( d > 0 && d < w.length() &&
ring0[i + 1] != ring1[j + 1] && ring0[i + 1] != ring1[j] &&
ring0[i + 0] != ring1[j + 1] && ring0[i + 0] != ring1[j] )
ring0->pointN( i + 1 ) != ring1->pointN( j + 1 ) && ring0->pointN( i + 1 ) != ring1->pointN( j ) &&
ring0->pointN( i + 0 ) != ring1->pointN( j + 1 ) && ring0->pointN( i + 0 ) != ring1->pointN( j ) )
{
QString msg = QObject::tr( "segment %1 of ring %2 of polygon %3 intersects segment %4 of ring %5 of polygon %6 at %7, %8" )
.arg( i0 ).arg( i ).arg( p0 )

0 comments on commit 9fbe872

Please sign in to comment.
You can’t perform that action at this time.