Skip to content

Commit

Permalink
fix for a regression - QgsVectorLayer::featureAtId returns empty attr…
Browse files Browse the repository at this point in the history
…ibute map if not in editing mode

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@9851 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
wonder committed Dec 18, 2008
1 parent e49fd9c commit 512b99c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/core/qgsvectorlayer.cpp
Expand Up @@ -1154,6 +1154,10 @@ void QgsVectorLayer::setSubsetString( QString subset )

void QgsVectorLayer::updateFeatureAttributes( QgsFeature &f )
{
// do not update when we aren't in editing mode
if ( ! mEditable )
return;

if ( mChangedAttributeValues.contains( f.id() ) )
{
const QgsAttributeMap &map = mChangedAttributeValues[f.id()];
Expand Down

0 comments on commit 512b99c

Please sign in to comment.