Skip to content
Permalink
Browse files

fix for #837

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@7659 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef
jef committed Nov 26, 2007
1 parent fc7002a commit cf9bcd6595c8c6971bd67bf65cc37374598bffe2
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 cf9bcd6

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