summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArmin Le Grand <alg@apache.org>2012-08-10 13:33:02 +0000
committerCaolán McNamara <caolanm@redhat.com>2013-05-28 15:55:24 +0100
commit75326909e5ec58f1ff030af8b35d70dafd036bba (patch)
treeeccbc79b347a8346731272ae54ee744b896b5260
parentResolves: #i120515# Implemented and finetuned the enhanced Undo feature (diff)
downloadcore-75326909e5ec58f1ff030af8b35d70dafd036bba.tar.gz
core-75326909e5ec58f1ff030af8b35d70dafd036bba.zip
Related: #i120515# do not create undo action when in Init()
(cherry picked from commit 1c02bb1bd719e7e0a47fdcc7463f8c9cd5bbb101) Change-Id: I57cbc1a19f18d71a27fb87086375b22755443675
-rw-r--r--editeng/source/outliner/outliner.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/editeng/source/outliner/outliner.cxx b/editeng/source/outliner/outliner.cxx
index c5fe66c913b5..6e74e283d72a 100644
--- a/editeng/source/outliner/outliner.cxx
+++ b/editeng/source/outliner/outliner.cxx
@@ -230,9 +230,10 @@ void Outliner::Init( sal_uInt16 nMode )
pEditEngine->SetControlWord( nCtrl );
+ EnableUndo(false);
ImplInitDepth( 0, GetMinDepth(), sal_False );
-
GetUndoManager().Clear();
+ EnableUndo(true);
}
void Outliner::SetMaxDepth( sal_Int16 nDepth, sal_Bool bCheckParagraphs )