Index: svl/source/undo/undo.cxx =================================================================== --- svl/source/undo/undo.cxx (revision 1342285) +++ svl/source/undo/undo.cxx (working copy) @@ -627,7 +627,7 @@ // 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;