fix for a regression - QgsVectorLayer::featureAtId returns empty attribute map if not in editing mode

git-svn-id: http://svn.osgeo.org/qgis/trunk@9851 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
wonder 2008-12-18 18:56:15 +00:00
parent a70c025a37
commit fdffe8a6b3

View File

@ -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()];