Skip to content

Commit bec93e1

Browse files
author
jef
committed
fix crash when removing attributes
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@11863 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent e145380 commit bec93e1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/core/qgsvectorlayer.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1139,7 +1139,7 @@ void QgsVectorLayer::updateFeatureAttributes( QgsFeature &f )
11391139
}
11401140

11411141
// remove all attributes that will disappear
1142-
const QgsAttributeMap &map = f.attributeMap();
1142+
QgsAttributeMap map = f.attributeMap();
11431143
for ( QgsAttributeMap::const_iterator it = map.begin(); it != map.end(); it++ )
11441144
if ( !mUpdatedFields.contains( it.key() ) )
11451145
f.deleteAttribute( it.key() );
@@ -2768,7 +2768,7 @@ int QgsVectorLayer::pendingFeatureCount()
27682768
bool QgsVectorLayer::commitChanges()
27692769
{
27702770
bool success = true;
2771-
2771+
27722772
//clear the cache image so markers dont appear anymore on next draw
27732773
setCacheImage( 0 );
27742774

@@ -3094,7 +3094,7 @@ bool QgsVectorLayer::rollBack()
30943094
emit editingStopped();
30953095

30963096
setModified( FALSE );
3097-
// invalidate teh cache so the layer updates properly to show its original
3097+
// invalidate the cache so the layer updates properly to show its original
30983098
// after the rollback
30993099
setCacheImage( 0 );
31003100
triggerRepaint();

0 commit comments

Comments
 (0)