From 6cb0be3014ecbab91f2bfa92ca7ae4058e70192b Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Mon, 30 Jul 2007 09:08:55 +0000 Subject: Fix bug #1760848 by ensuring undo stack level is maintained during an automatic load while reload.preserves.undo=1. --- src/CellBuffer.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/CellBuffer.cxx b/src/CellBuffer.cxx index 1beeefc6b..6d04e04c9 100644 --- a/src/CellBuffer.cxx +++ b/src/CellBuffer.cxx @@ -471,6 +471,7 @@ void UndoHistory::BeginUndoAction() { } void UndoHistory::EndUndoAction() { + PLATFORM_ASSERT(undoSequenceDepth > 0); EnsureUndoRoom(); undoSequenceDepth--; if (0 == undoSequenceDepth) { -- cgit v1.2.3