Skip to content

Commit

Permalink
[backport]: fix for attribute shift in form when invoked from table
Browse files Browse the repository at this point in the history
  • Loading branch information
mhugent authored and alexbruy committed Dec 22, 2011
1 parent cfb35b7 commit f66dbed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/attributetable/qgsattributetablemodel.cpp
Expand Up @@ -506,7 +506,7 @@ void QgsAttributeTableModel::featureForm( QModelIndex &idx )
f.setFeatureId( rowToId( idx.row() ) );
for ( int i = 0; i < mAttributes.size(); i++ )
{
f.changeAttribute( i, data( index( idx.row(), i ), Qt::EditRole ) );
f.changeAttribute( mAttributes[i], data( index( idx.row(), i ), Qt::EditRole ) );
}

QgsFeatureAction action( tr( "Attributes changed" ), f, mLayer, -1, this );
Expand Down

0 comments on commit f66dbed

Please sign in to comment.