Skip to content
Permalink
Browse files

[QgsActionMenu] fix return feature

  • Loading branch information
3nids committed Sep 11, 2014
1 parent f85a883 commit aa95ae4cd0a590f4c5ae47fe1fa8eced263da46b
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/gui/qgsactionmenu.cpp
@@ -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 ) )

0 comments on commit aa95ae4

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