summaryrefslogtreecommitdiff
path: root/svx/source/table/celleditsource.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svx/source/table/celleditsource.cxx')
-rw-r--r--svx/source/table/celleditsource.cxx15
1 files changed, 9 insertions, 6 deletions
diff --git a/svx/source/table/celleditsource.cxx b/svx/source/table/celleditsource.cxx
index c16290a05d30..bd9401e562f6 100644
--- a/svx/source/table/celleditsource.cxx
+++ b/svx/source/table/celleditsource.cxx
@@ -551,19 +551,19 @@ SvxTextForwarder* CellEditSourceImpl::GetBackgroundTextForwarder()
{
mpTextForwarder->flushCache();
- OutlinerParaObject* mpOutlinerParaObject = NULL;
+ OutlinerParaObject* pOutlinerParaObject = NULL;
bool bTextEditActive = false;
- mpOutlinerParaObject = mxCell->GetEditOutlinerParaObject(); // Get the OutlinerParaObject if text edit is active
+ pOutlinerParaObject = mxCell->GetEditOutlinerParaObject(); // Get the OutlinerParaObject if text edit is active
- if( mpOutlinerParaObject )
+ if( pOutlinerParaObject )
bTextEditActive = true; // text edit active
else
- mpOutlinerParaObject = mxCell->GetOutlinerParaObject();
+ pOutlinerParaObject = mxCell->GetOutlinerParaObject();
- if( mpOutlinerParaObject )
+ if( pOutlinerParaObject )
{
- mpOutliner->SetText( *mpOutlinerParaObject );
+ mpOutliner->SetText( *pOutlinerParaObject );
}
else
{
@@ -598,6 +598,9 @@ SvxTextForwarder* CellEditSourceImpl::GetBackgroundTextForwarder()
}
}
+ if( bTextEditActive )
+ delete pOutlinerParaObject;
+
mbDataValid = true;
}