From b512c3ca29735f15383c5f6215348fccfaddd40e Mon Sep 17 00:00:00 2001 From: Kohei Yoshida Date: Thu, 29 Mar 2012 02:00:02 -0400 Subject: No need to delete ParaPortion outside of the container any more. --- editeng/source/editeng/impedit2.cxx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'editeng') diff --git a/editeng/source/editeng/impedit2.cxx b/editeng/source/editeng/impedit2.cxx index 04cebce327f2..e7d2bbce7d47 100644 --- a/editeng/source/editeng/impedit2.cxx +++ b/editeng/source/editeng/impedit2.cxx @@ -2477,18 +2477,15 @@ void ImpEditEngine::ImpRemoveParagraph( sal_uInt16 nPara ) { ContentNode* pNode = aEditDoc.SaveGetObject( nPara ); ContentNode* pNextNode = aEditDoc.SaveGetObject( nPara+1 ); - ParaPortion* pPortion = GetParaPortions().SaveGetObject( nPara ); OSL_ENSURE( pNode, "Blind Node in ImpRemoveParagraph" ); - OSL_ENSURE( pPortion, "Blind Portion in ImpRemoveParagraph(2)" ); DeletedNodeInfo* pInf = new DeletedNodeInfo( (sal_uLong)pNode, nPara ); aDeletedNodes.Insert( pInf, aDeletedNodes.Count() ); // The node is managed by the undo and possibly destroyed! - /* delete */ aEditDoc.Remove( nPara ); + aEditDoc.Remove( nPara ); GetParaPortions().Remove( nPara ); - delete pPortion; if ( IsCallParaInsertedOrDeleted() ) { -- cgit