Skip to content
Permalink
Browse files

[Geometry Checker] Don't add geometry-less features to feature-pool

  • Loading branch information
manisandro committed Dec 6, 2016
1 parent d6e0120 commit 818738300d3bbd85ed9fa616739b1447541fb71f
Showing with 8 additions and 1 deletion.
  1. +8 −1 src/plugins/geometry_checker/utils/qgsfeaturepool.cpp
@@ -44,7 +44,14 @@ QgsFeaturePool::QgsFeaturePool( QgsVectorLayer *layer, bool selectedOnly )
QgsFeatureIterator it = layer->getFeatures( req );
while ( it.nextFeature( feature ) )
{
mIndex.insertFeature( feature );
if ( feature.geometry() )
{
mIndex.insertFeature( feature );
}
else
{
mFeatureIds.remove( feature.id() );
}
}
}

0 comments on commit 8187383

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