summaryrefslogtreecommitdiff
path: root/sc/source/ui/undo
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2013-03-21 23:36:50 -0400
committerKohei Yoshida <kohei.yoshida@gmail.com>2013-03-22 21:49:24 -0400
commit6cc6f68895b99dca9e9785b7cb77a853c0eb2178 (patch)
tree5b3b776a6c95d7f1e682b09a946ea36687d793b1 /sc/source/ui/undo
parent304fabda76364301956333120bf86b5a0ea9fe04 (diff)
More on reducing use of ScDocument::PutCell().
Change-Id: I7a911f13cddea829884aa9558d3be6a5e281c144
Diffstat (limited to 'sc/source/ui/undo')
-rw-r--r--sc/source/ui/undo/undocell.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sc/source/ui/undo/undocell.cxx b/sc/source/ui/undo/undocell.cxx
index 868dff59a373..1f6163978c7a 100644
--- a/sc/source/ui/undo/undocell.cxx
+++ b/sc/source/ui/undo/undocell.cxx
@@ -706,8 +706,7 @@ void ScUndoThesaurus::DoChange( sal_Bool bUndo, const String& rStr,
if (pCell->GetCellType() == CELLTYPE_EDIT )
{
// A copy of pTObj will be stored in the cell.
- ScEditCell* pNewCell = new ScEditCell(*pTObj, pDoc, NULL);
- pDoc->PutCell( nCol, nRow, nTab, pNewCell );
+ pDoc->SetEditText(ScAddress(nCol,nRow,nTab), *pTObj, pDoc->GetEditPool());
if ( !bUndo )
SetChangeTrack( pCell );
}