Skip to content

Commit f66dbed

Browse files
mhugentalexbruy
authored andcommittedDec 22, 2011
[backport]: fix for attribute shift in form when invoked from table
1 parent cfb35b7 commit f66dbed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/app/attributetable/qgsattributetablemodel.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ void QgsAttributeTableModel::featureForm( QModelIndex &idx )
506506
f.setFeatureId( rowToId( idx.row() ) );
507507
for ( int i = 0; i < mAttributes.size(); i++ )
508508
{
509-
f.changeAttribute( i, data( index( idx.row(), i ), Qt::EditRole ) );
509+
f.changeAttribute( mAttributes[i], data( index( idx.row(), i ), Qt::EditRole ) );
510510
}
511511

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

0 commit comments

Comments
 (0)
Please sign in to comment.