Skip to content

Commit aa95ae4

Browse files
committedSep 16, 2014
[QgsActionMenu] fix return feature
1 parent f85a883 commit aa95ae4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/gui/qgsactionmenu.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ void QgsActionMenu::init()
5151

5252
const QgsFeature* QgsActionMenu::feature()
5353
{
54-
if ( !mFeature )
54+
if ( !mFeature || !mFeature->isValid() )
5555
{
5656
QgsFeature* feat = new QgsFeature();
5757
if ( mActions->layer()->getFeatures( QgsFeatureRequest( mFeatureId ) ).nextFeature( *feat ) )

0 commit comments

Comments
 (0)
Please sign in to comment.