From 6cc6f68895b99dca9e9785b7cb77a853c0eb2178 Mon Sep 17 00:00:00 2001 From: Kohei Yoshida Date: Thu, 21 Mar 2013 23:36:50 -0400 Subject: More on reducing use of ScDocument::PutCell(). Change-Id: I7a911f13cddea829884aa9558d3be6a5e281c144 --- sc/source/ui/undo/undocell.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sc/source/ui/undo') 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 ); } -- cgit