Skip to content

Commit cc9a2b3

Browse files
committedOct 23, 2017
[Geometry checker] Fix incorrect logic in QgsGeometryCheckError::handleChanges
1 parent 876418c commit cc9a2b3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/analysis/vector/geometry_checker/qgsgeometrycheck.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ bool QgsGeometryCheckError::handleChanges( const QgsGeometryCheck::Changes &chan
102102
}
103103
else if ( change.what == QgsGeometryCheck::ChangePart )
104104
{
105-
if ( change.type == QgsGeometryCheck::ChangeChanged || mVidx.part == change.vidx.part )
105+
if ( mVidx.part == change.vidx.part )
106106
{
107107
return false;
108108
}
@@ -115,7 +115,7 @@ bool QgsGeometryCheckError::handleChanges( const QgsGeometryCheck::Changes &chan
115115
{
116116
if ( mVidx.partEqual( change.vidx ) )
117117
{
118-
if ( change.type == QgsGeometryCheck::ChangeChanged || mVidx.ring == change.vidx.ring )
118+
if ( mVidx.ring == change.vidx.ring )
119119
{
120120
return false;
121121
}

0 commit comments

Comments
 (0)