From 4f298ece2f48d4a632ea50e0f287192f619cb586 Mon Sep 17 00:00:00 2001 From: Armin Le Grand Date: Thu, 6 Sep 2012 10:38:22 +0000 Subject: Do not enable outliner when it was not before only for temporary undo disable (cherry picked from commit 68e5157012bc54ad4ce9bcd644cc163d5662ff67) Change-Id: I2cbdc2a228884dff8000206ced4a5d8930dd6339 --- 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 6e74e283d72a..43e0b69b34c2 100644 --- a/editeng/source/outliner/outliner.cxx +++ b/editeng/source/outliner/outliner.cxx @@ -230,10 +230,11 @@ void Outliner::Init( sal_uInt16 nMode ) pEditEngine->SetControlWord( nCtrl ); + const bool bWasUndoEnabled(IsUndoEnabled()); EnableUndo(false); ImplInitDepth( 0, GetMinDepth(), sal_False ); GetUndoManager().Clear(); - EnableUndo(true); + EnableUndo(bWasUndoEnabled); } void Outliner::SetMaxDepth( sal_Int16 nDepth, sal_Bool bCheckParagraphs ) -- cgit v1.2.3