incubator-ooo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From o..@apache.org
Subject svn commit: r1350569 - /incubator/ooo/branches/AOO34/main/svl/source/undo/undo.cxx
Date Fri, 15 Jun 2012 11:01:05 GMT
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;



Mime
View raw message