Skip to content

Commit

Permalink
correctly initilaze feature with fields in map layer action from attr…
Browse files Browse the repository at this point in the history
…ibute table
  • Loading branch information
3nids committed Oct 22, 2020
1 parent 22b622b commit 32ca4b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/attributetable/qgsattributetablemodel.cpp
Expand Up @@ -864,7 +864,7 @@ void QgsAttributeTableModel::executeMapLayerAction( QgsMapLayerAction *action, c

QgsFeature QgsAttributeTableModel::feature( const QModelIndex &idx ) const
{
QgsFeature f;
QgsFeature f( mLayerCache->layer()->fields() );
f.initAttributes( mAttributes.size() );
f.setId( rowToId( idx.row() ) );
for ( int i = 0; i < mAttributes.size(); i++ )
Expand Down

0 comments on commit 32ca4b1

Please sign in to comment.