summaryrefslogtreecommitdiff
path: root/editeng
diff options
context:
space:
mode:
authorArmin Le Grand <alg@apache.org>2012-09-06 10:38:22 +0000
committerCaolán McNamara <caolanm@redhat.com>2013-05-28 15:55:25 +0100
commit4f298ece2f48d4a632ea50e0f287192f619cb586 (patch)
treeda9092201ebe45109adfe4ab1d5481ef7d22bc59 /editeng
parent75326909e5ec58f1ff030af8b35d70dafd036bba (diff)
Do not enable outliner when it was not before only for temporary undo disable
(cherry picked from commit 68e5157012bc54ad4ce9bcd644cc163d5662ff67) Change-Id: I2cbdc2a228884dff8000206ced4a5d8930dd6339
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 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 )