mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
fix for a regression - QgsVectorLayer::featureAtId returns empty attribute map if not in editing mode
git-svn-id: http://svn.osgeo.org/qgis/branches/Version-1_0@9852 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
parent
58549898d7
commit
d888dea7aa
@ -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()];
|
||||
|
Loading…
x
Reference in New Issue
Block a user