Skip to content
Permalink
Browse files

Merge pull request #8249 from tudorbarascu/fix_addpart

fix addpart tool warning
  • Loading branch information
elpaso committed Oct 21, 2018
2 parents f963ba3 + 5168d7d commit b379d75e1fe11d37aee15526633b39979b1cac3d
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/app/qgsmaptooladdpart.cpp
@@ -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;
}

0 comments on commit b379d75

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