summaryrefslogtreecommitdiff
path: root/editeng
diff options
context:
space:
mode:
authorArmin Le Grand <alg@apache.org>2012-08-10 13:33:02 +0000
committerArmin Le Grand <alg@apache.org>2012-08-10 13:33:02 +0000
commit1c02bb1bd719e7e0a47fdcc7463f8c9cd5bbb101 (patch)
tree0a9294a347c9a96513e9e506fbe9fcd27bb8d182 /editeng
parentfb2580f1c8ae0cd1418c257823dc2d735607655f (diff)
#120515# do not create undo action when in Init()
Notes
Notes: merged as: 75326909e5ec58f1ff030af8b35d70dafd036bba
Diffstat (limited to 'editeng')
-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 bdef7897dbbd..785abb187211 100644
--- a/editeng/source/outliner/outliner.cxx
+++ b/editeng/source/outliner/outliner.cxx
@@ -256,9 +256,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 )