Skip to content

Commit

Permalink
[QgsActionMenu] fix return feature
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Sep 16, 2014
1 parent f85a883 commit aa95ae4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/qgsactionmenu.cpp
Expand Up @@ -51,7 +51,7 @@ void QgsActionMenu::init()

const QgsFeature* QgsActionMenu::feature()
{
if ( !mFeature )
if ( !mFeature || !mFeature->isValid() )
{
QgsFeature* feat = new QgsFeature();
if ( mActions->layer()->getFeatures( QgsFeatureRequest( mFeatureId ) ).nextFeature( *feat ) )
Expand Down

0 comments on commit aa95ae4

Please sign in to comment.