mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-26 00:02:08 -05:00
[QgsActionMenu] fix return feature
This commit is contained in:
parent
f85a883976
commit
aa95ae4cd0
@ -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 ) )
|
||||
|
Loading…
x
Reference in New Issue
Block a user