File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1139,7 +1139,7 @@ void QgsVectorLayer::updateFeatureAttributes( QgsFeature &f )
1139
1139
}
1140
1140
1141
1141
// remove all attributes that will disappear
1142
- const QgsAttributeMap & map = f.attributeMap ();
1142
+ QgsAttributeMap map = f.attributeMap ();
1143
1143
for ( QgsAttributeMap::const_iterator it = map.begin (); it != map.end (); it++ )
1144
1144
if ( !mUpdatedFields .contains ( it.key () ) )
1145
1145
f.deleteAttribute ( it.key () );
@@ -2768,7 +2768,7 @@ int QgsVectorLayer::pendingFeatureCount()
2768
2768
bool QgsVectorLayer::commitChanges ()
2769
2769
{
2770
2770
bool success = true ;
2771
-
2771
+
2772
2772
// clear the cache image so markers dont appear anymore on next draw
2773
2773
setCacheImage ( 0 );
2774
2774
@@ -3094,7 +3094,7 @@ bool QgsVectorLayer::rollBack()
3094
3094
emit editingStopped ();
3095
3095
3096
3096
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
3098
3098
// after the rollback
3099
3099
setCacheImage ( 0 );
3100
3100
triggerRepaint ();
You can’t perform that action at this time.
0 commit comments