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 committed Dec 22, 2011
1 parent 7f0dc3c commit 5a2be18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/attributetable/qgsattributetablemodel.cpp
Expand Up @@ -542,7 +542,7 @@ QgsFeature QgsAttributeTableModel::feature( 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 ) );
}

return f;
Expand Down

0 comments on commit 5a2be18

Please sign in to comment.