Skip to content
Permalink
Browse files

Second attempt at fixing crash on node tool after merge

See #14188
  • Loading branch information
Sandro Santilli
Sandro Santilli committed Feb 1, 2016
1 parent 781c9d7 commit 24a9f491812a3a044c28a4406a24764504d792db
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/app/nodetool/qgsselectedfeature.cpp
@@ -78,7 +78,10 @@ void QgsSelectedFeature::updateGeometry( QgsGeometry *geom )
{
QgsFeature f;
mVlayer->getFeatures( QgsFeatureRequest().setFilterFid( mFeatureId ) ).nextFeature( f );
mGeometry = f.geometry() ? new QgsGeometry( *f.geometry() ) : nullptr;
if ( f.geometry() )
mGeometry = new QgsGeometry( *f.geometry() );
else
mGeometry = new QgsGeometry();
}
else
{

0 comments on commit 24a9f49

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