From c8c50a05e2ec57fe46bb4e54013c0b3cbd0b3b3b Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Thu, 25 Nov 2010 14:31:09 +0100 Subject: unodapi: #i115383#: clean up ClearRedo() usage: ClearRedo() is already called by AppendUndo(): remove superfluous calls of ClearRedo. implementation of ClearRedo() should not check DoesUndo(); that seems kinda pointless, and creates difficulties for refactoring. --- sw/source/core/doc/docdraw.cxx | 1 - 1 file changed, 1 deletion(-) (limited to 'sw/source/core/doc/docdraw.cxx') diff --git a/sw/source/core/doc/docdraw.cxx b/sw/source/core/doc/docdraw.cxx index 1dd1fc0d414e..b936cce27c55 100644 --- a/sw/source/core/doc/docdraw.cxx +++ b/sw/source/core/doc/docdraw.cxx @@ -305,7 +305,6 @@ SwDrawContact* SwDoc::GroupSelection( SdrView& rDrawView ) if( pUndo ) { pUndo->SetGroupFmt( pFmt ); - GetIDocumentUndoRedo().ClearRedo(); GetIDocumentUndoRedo().AppendUndo( pUndo ); } } -- cgit v1.2.3