Skip to content

Commit

Permalink
[Geometry checker] Fix incorrect logic in QgsGeometryCheckError::hand…
Browse files Browse the repository at this point in the history
…leChanges
  • Loading branch information
manisandro committed Oct 23, 2017
1 parent 876418c commit cc9a2b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/analysis/vector/geometry_checker/qgsgeometrycheck.cpp
Expand Up @@ -102,7 +102,7 @@ bool QgsGeometryCheckError::handleChanges( const QgsGeometryCheck::Changes &chan
}
else if ( change.what == QgsGeometryCheck::ChangePart )
{
if ( change.type == QgsGeometryCheck::ChangeChanged || mVidx.part == change.vidx.part )
if ( mVidx.part == change.vidx.part )
{
return false;
}
Expand All @@ -115,7 +115,7 @@ bool QgsGeometryCheckError::handleChanges( const QgsGeometryCheck::Changes &chan
{
if ( mVidx.partEqual( change.vidx ) )
{
if ( change.type == QgsGeometryCheck::ChangeChanged || mVidx.ring == change.vidx.ring )
if ( mVidx.ring == change.vidx.ring )
{
return false;
}
Expand Down

0 comments on commit cc9a2b3

Please sign in to comment.