Skip to content
Permalink
Browse files

fix for #837

git-svn-id: http://svn.osgeo.org/qgis/trunk@7659 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef
jef committed Nov 26, 2007
1 parent 98ee808 commit 70d84b8ade4dd8242a3794ad2eed8a8c6dd55d6e
Showing with 4 additions and 3 deletions.
  1. +4 −3 src/app/qgsattributedialog.cpp
@@ -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;
}

0 comments on commit 70d84b8

Please sign in to comment.
You can’t perform that action at this time.