From 75326909e5ec58f1ff030af8b35d70dafd036bba Mon Sep 17 00:00:00 2001 From: Armin Le Grand Date: Fri, 10 Aug 2012 13:33:02 +0000 Subject: Related: #i120515# do not create undo action when in Init() (cherry picked from commit 1c02bb1bd719e7e0a47fdcc7463f8c9cd5bbb101) Change-Id: I57cbc1a19f18d71a27fb87086375b22755443675 --- editeng/source/outliner/outliner.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 ) -- cgit