summaryrefslogtreecommitdiff
path: root/sc/source/filter/rtf/eeimpars.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/filter/rtf/eeimpars.cxx')
-rw-r--r--sc/source/filter/rtf/eeimpars.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/filter/rtf/eeimpars.cxx b/sc/source/filter/rtf/eeimpars.cxx
index f84cc987ef8d..cac30a4db058 100644
--- a/sc/source/filter/rtf/eeimpars.cxx
+++ b/sc/source/filter/rtf/eeimpars.cxx
@@ -400,10 +400,10 @@ void ScEEImport::WriteToDocument( bool bSizeColsRows, double nOutputFactor, SvNu
mpDoc->SetString(nCol, nRow, nTab, aStr, &aParam);
}
}
- else
+ else if (EditTextObject* pTextObject = mpEngine->CreateTextObject(pE->aSel))
{
// The cell will own the text object instance.
- mpDoc->SetEditText(ScAddress(nCol,nRow,nTab), mpEngine->CreateTextObject(pE->aSel));
+ mpDoc->SetEditText(ScAddress(nCol,nRow,nTab), pTextObject);
}
if ( !pE->maImageList.empty() )
bHasGraphics |= GraphicSize( nCol, nRow, pE );