Skip to content

Commit ca70498

Browse files
author
wonder
committed
Clear undo stack on rollback. Fixes #2287.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@12510 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent d8c3827 commit ca70498

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/core/qgsvectorlayer.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -3414,6 +3414,8 @@ bool QgsVectorLayer::rollBack()
34143414

34153415
deleteCachedGeometries();
34163416

3417+
undoStack()->clear();
3418+
34173419
mEditable = false;
34183420
emit editingStopped();
34193421

@@ -3423,7 +3425,6 @@ bool QgsVectorLayer::rollBack()
34233425
setCacheImage( 0 );
34243426
triggerRepaint();
34253427

3426-
34273428
return true;
34283429
}
34293430

0 commit comments

Comments
 (0)