Skip to content

Commit

Permalink
Bugfix to allow classified postgres layers in 0.9
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@6717 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Feb 26, 2007
1 parent eb97895 commit fb7845b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/providers/postgres/qgspostgresprovider.cpp
Expand Up @@ -613,7 +613,7 @@ void QgsPostgresProvider::getFeatureAttributes(int key, int &row,
{
// Add the attribute to the feature
QString val = QString::fromUtf8(PQgetvalue(attr, 0, 0));
f.addAttribute(i, QgsFeatureAttribute(fld, val));
f.addAttribute(*iter, QgsFeatureAttribute(fld, val));
}
PQclear(attr);
}
Expand Down

0 comments on commit fb7845b

Please sign in to comment.