Skip to content

Commit 2ed9f06

Browse files
author
mhugent
committedFeb 26, 2007
Bugfix to allow classified postgres layers in 0.9
git-svn-id: http://svn.osgeo.org/qgis/trunk@6717 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 1f2cf0a commit 2ed9f06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/providers/postgres/qgspostgresprovider.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,7 @@ void QgsPostgresProvider::getFeatureAttributes(int key, int &row,
613613
{
614614
// Add the attribute to the feature
615615
QString val = QString::fromUtf8(PQgetvalue(attr, 0, 0));
616-
f.addAttribute(i, QgsFeatureAttribute(fld, val));
616+
f.addAttribute(*iter, QgsFeatureAttribute(fld, val));
617617
}
618618
PQclear(attr);
619619
}

0 commit comments

Comments
 (0)
Please sign in to comment.