Skip to content

Commit

Permalink
Merge pull request #8249 from tudorbarascu/fix_addpart
Browse files Browse the repository at this point in the history
fix addpart tool warning
  • Loading branch information
elpaso committed Oct 21, 2018
2 parents f963ba3 + 5168d7d commit b379d75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/qgsmaptooladdpart.cpp
Expand Up @@ -71,7 +71,7 @@ void QgsMapToolAddPart::cadCanvasReleaseEvent( QgsMapMouseEvent *e )
QgsFeatureIterator selectedFeatures = vlayer->getSelectedFeatures();
QgsFeature firstSelectedFeature;
if ( selectedFeatures.nextFeature( firstSelectedFeature ) )
if ( !firstSelectedFeature.geometry().isNull() )
if ( firstSelectedFeature.geometry().isNull() )
isGeometryEmpty = true;
}

Expand Down

0 comments on commit b379d75

Please sign in to comment.