incubator-ooo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject svn commit: r1381562 - /incubator/ooo/trunk/main/editeng/source/outliner/outliner.cxx
Date Thu, 06 Sep 2012 11:38:23 GMT
Author: alg
Date: Thu Sep  6 11:38:22 2012
New Revision: 1381562

URL: http://svn.apache.org/viewvc?rev=1381562&view=rev
Log:
Do not enable outliner when it was not before only for temporary undo disable

Modified:
    incubator/ooo/trunk/main/editeng/source/outliner/outliner.cxx

Modified: incubator/ooo/trunk/main/editeng/source/outliner/outliner.cxx
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/editeng/source/outliner/outliner.cxx?rev=1381562&r1=1381561&r2=1381562&view=diff
==============================================================================
--- incubator/ooo/trunk/main/editeng/source/outliner/outliner.cxx (original)
+++ incubator/ooo/trunk/main/editeng/source/outliner/outliner.cxx Thu Sep  6 11:38:22 2012
@@ -256,10 +256,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 )



Mime
View raw message