Kaydet (Commit) 4f298ece authored tarafından Armin Le Grand's avatar Armin Le Grand Kaydeden (comit) Caolán McNamara

Do not enable outliner when it was not before only for temporary undo disable

(cherry picked from commit 68e51570)

Change-Id: I2cbdc2a228884dff8000206ced4a5d8930dd6339
üst 75326909
......@@ -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 )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment