summaryrefslogtreecommitdiff
path: root/editeng
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2012-03-29 02:00:02 -0400
committerKohei Yoshida <kohei.yoshida@gmail.com>2012-03-29 02:00:02 -0400
commitb512c3ca29735f15383c5f6215348fccfaddd40e (patch)
tree8e8276ccfadcfb3b4e7099b51b2869f49f996b8f /editeng
parentc802cbad7f25d3070f2ae5fd8a7e1a7ce17f99a9 (diff)
No need to delete ParaPortion outside of the container any more.
Diffstat (limited to 'editeng')
-rw-r--r--editeng/source/editeng/impedit2.cxx5
1 files changed, 1 insertions, 4 deletions
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() )
{