You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by al...@apache.org on 2012/08/10 16:33:02 UTC

svn commit: r1371717 - /incubator/ooo/trunk/main/editeng/source/outliner/outliner.cxx

Author: alg
Date: Fri Aug 10 14:33:02 2012
New Revision: 1371717

URL: http://svn.apache.org/viewvc?rev=1371717&view=rev
Log:
#120515# do not create undo action when in Init()

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=1371717&r1=1371716&r2=1371717&view=diff
==============================================================================
--- incubator/ooo/trunk/main/editeng/source/outliner/outliner.cxx (original)
+++ incubator/ooo/trunk/main/editeng/source/outliner/outliner.cxx Fri Aug 10 14:33:02 2012
@@ -256,9 +256,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 )