Skip to content

Commit

Permalink
Clear undo stack on rollback. Fixes #2287.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@12510 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
wonder committed Dec 19, 2009
1 parent d8c3827 commit ca70498
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/qgsvectorlayer.cpp
Expand Up @@ -3414,6 +3414,8 @@ bool QgsVectorLayer::rollBack()

deleteCachedGeometries();

undoStack()->clear();

mEditable = false;
emit editingStopped();

Expand All @@ -3423,7 +3425,6 @@ bool QgsVectorLayer::rollBack()
setCacheImage( 0 );
triggerRepaint();


return true;
}

Expand Down

0 comments on commit ca70498

Please sign in to comment.