Skip to content
Permalink
Browse files

[Geometry checker] Don't make the layer-feature iterator return featu…

…res without valid geometry
  • Loading branch information
manisandro committed Oct 19, 2017
1 parent f507246 commit 9218afd3af9367f25f9399380a03b7f4b5aed241
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/analysis/vector/geometry_checker/qgsgeometrycheckerutils.cpp
@@ -124,7 +124,7 @@ namespace QgsGeometryCheckerUtils
if ( mParent->mProgressCounter )
mParent->mProgressCounter->fetchAndAddRelaxed( 1 );
QgsFeature feature;
if ( featurePool->get( *mFeatureIt, feature ) )
if ( featurePool->get( *mFeatureIt, feature ) && feature.geometry() && feature.geometry().geometry() )
{
delete mCurrentFeature;
mCurrentFeature = new LayerFeature( mParent->mFeaturePools[*mLayerIt], feature, mParent->mUseMapCrs );

0 comments on commit 9218afd

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