Skip to content

Commit

Permalink
Second attempt at fixing crash on node tool after merge
Browse files Browse the repository at this point in the history
See #14188
  • Loading branch information
Sandro Santilli committed Feb 1, 2016
1 parent 781c9d7 commit 24a9f49
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/app/nodetool/qgsselectedfeature.cpp
Expand Up @@ -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
{
Expand Down

0 comments on commit 24a9f49

Please sign in to comment.