Skip to content
Permalink
Browse files
fix for a regression - QgsVectorLayer::featureAtId returns empty attr…
…ibute map if not in editing mode

git-svn-id: http://svn.osgeo.org/qgis/branches/Version-1_0@9852 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
wonder committed Dec 18, 2008
1 parent 5854989 commit d888dea7aa002ac47486484aee118f93fd52acbf
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/core/qgsvectorlayer.cpp
@@ -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()];

0 comments on commit d888dea

Please sign in to comment.