summaryrefslogtreecommitdiff
path: root/sc/source/ui/app
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2013-03-19 12:51:47 -0400
committerKohei Yoshida <kohei.yoshida@gmail.com>2013-03-19 13:40:27 -0400
commit20c4921e901d84a7ef8835ee192e1a7a4b62ee61 (patch)
treec298901717bf1297e1d50c19f1e1347359105c89 /sc/source/ui/app
parentd0314afa2fef363eba06e98c70ecdc83e690dcd0 (diff)
Remove use of ScBaseCell and its derivatives outside ScDocument.
This is still work in progress. Change-Id: Ifcdbefbdd307a2a8819b073d896e90a16980781e
Diffstat (limited to 'sc/source/ui/app')
-rw-r--r--sc/source/ui/app/transobj.cxx10
1 files changed, 8 insertions, 2 deletions
diff --git a/sc/source/ui/app/transobj.cxx b/sc/source/ui/app/transobj.cxx
index 5325fac83632..b75600098272 100644
--- a/sc/source/ui/app/transobj.cxx
+++ b/sc/source/ui/app/transobj.cxx
@@ -817,11 +817,17 @@ void ScTransferObj::StripRefs( ScDocument* pDoc,
{
String aStr = pFCell->GetString();
if ( pFCell->IsMultilineResult() )
- pNew = new ScEditCell( aStr, pDestDoc );
+ {
+ ScFieldEditEngine& rEngine = pDestDoc->GetEditEngine();
+ rEngine.SetText(aStr);
+ pDestDoc->SetEditText(ScAddress(nCol,nRow,nDestTab), rEngine.CreateTextObject());
+ }
else
pNew = new ScStringCell( aStr );
}
- pDestDoc->PutCell( nCol,nRow,nDestTab, pNew );
+
+ if (pNew)
+ pDestDoc->PutCell(nCol, nRow, nDestTab, pNew);
// number formats