You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by or...@apache.org on 2012/06/15 13:01:05 UTC
svn commit: r1350569 -
/incubator/ooo/branches/AOO34/main/svl/source/undo/undo.cxx
Author: orw
Date: Fri Jun 15 11:01:04 2012
New Revision: 1350569
URL: http://svn.apache.org/viewvc?rev=1350569&view=rev
Log:
#119400# - method <SfxUndoManager::ImplAddUndoAction_NoNotify(..)>
- correct condition for merging undo actions
Found by: DonJaime <donjaime at freenet dot de>
Patch by: hanya <hanya.runo at gmail dot com>
Review by: Oliver <orw at apache dot org>
Modified:
incubator/ooo/branches/AOO34/main/svl/source/undo/undo.cxx
Modified: incubator/ooo/branches/AOO34/main/svl/source/undo/undo.cxx
URL: http://svn.apache.org/viewvc/incubator/ooo/branches/AOO34/main/svl/source/undo/undo.cxx?rev=1350569&r1=1350568&r2=1350569&view=diff
==============================================================================
--- incubator/ooo/branches/AOO34/main/svl/source/undo/undo.cxx (original)
+++ incubator/ooo/branches/AOO34/main/svl/source/undo/undo.cxx Fri Jun 15 11:01:04 2012
@@ -627,7 +627,7 @@ bool SfxUndoManager::ImplAddUndoAction_N
// merge, if required
SfxUndoAction* pMergeWithAction = m_pData->pActUndoArray->nCurUndoAction ?
m_pData->pActUndoArray->aUndoActions[m_pData->pActUndoArray->nCurUndoAction-1].pAction : NULL;
- if ( bTryMerge && ( !pMergeWithAction || !pMergeWithAction->Merge( pAction ) ) )
+ if ( bTryMerge && ( pMergeWithAction && pMergeWithAction->Merge( pAction ) ) )
{
i_guard.markForDeletion( pAction );
return false;