Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix for #837
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@7659 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Nov 26, 2007
1 parent fc7002a commit cf9bcd6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/app/qgsattributedialog.cpp
Expand Up @@ -81,10 +81,11 @@ bool QgsAttributeDialog::queryAttributes(const QgsFieldMap& fields, QgsFeature&
QgsAttributeDialog attdialog(fields, featureAttributes);

if (attdialog.exec() == QDialog::Accepted)
{
for (int i = 0; i < featureAttributes.size(); ++i)
{
int i=0;
for (QgsAttributeMap::const_iterator it = featureAttributes.begin(); it != featureAttributes.end(); ++it)
{
f.changeAttribute(i, QVariant(attdialog.value(i)) );
f.changeAttribute(it.key(), QVariant(attdialog.value(i++)) );
}
return true;
}
Expand Down

0 comments on commit cf9bcd6

Please sign in to comment.