Skip to content
Permalink
Browse files

[Geometry checker] Fix possible data provider errors due to referring…

… to deleted features
  • Loading branch information
manisandro committed Jul 14, 2016
1 parent ee310f1 commit 087ec08b9ce5e924d20024c5aafbc5c92c5bd52f
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/plugins/geometry_checker/checks/qgsgeometryareacheck.cpp
@@ -200,14 +200,14 @@ bool QgsGeometryAreaCheck::mergeWithNeighbor( QgsFeature& feature, int partIdx,
return false;
}

// Remove polygon from source geometry
deleteFeatureGeometryPart( feature, partIdx, changes );
// Replace polygon in merge geometry
if ( mergeFeature.id() == feature.id() && mergePartIdx > partIdx )
{
--mergePartIdx;
}
// Replace polygon in merge geometry
replaceFeatureGeometryPart( mergeFeature, mergePartIdx, combinedGeom, changes );
// Remove polygon from source geometry
deleteFeatureGeometryPart( feature, partIdx, changes );

return true;
}

0 comments on commit 087ec08

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