Skip to content

Commit 5a2be18

Browse files
committedDec 22, 2011
[backport]: fix for attribute shift in form when invoked from table
1 parent 7f0dc3c commit 5a2be18

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/gui/attributetable/qgsattributetablemodel.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ QgsFeature QgsAttributeTableModel::feature( QModelIndex &idx )
542542
f.setFeatureId( rowToId( idx.row() ) );
543543
for ( int i = 0; i < mAttributes.size(); i++ )
544544
{
545-
f.changeAttribute( i, data( index( idx.row(), i ), Qt::EditRole ) );
545+
f.changeAttribute( mAttributes[i], data( index( idx.row(), i ), Qt::EditRole ) );
546546
}
547547

548548
return f;

0 commit comments

Comments
 (0)
Please sign in to comment.