Kaydet (Commit) 19c46727 authored tarafından Eike Rathke's avatar Eike Rathke

sc-perf: SetFormulaCells: unnecessary number format check in clipboard/undo

Change-Id: Ica7495e95700db2e6be1dd475ec450d8450364a4
üst 5f01b298
......@@ -1922,12 +1922,15 @@ bool ScColumn::SetFormulaCells( SCROW nRow, std::vector<ScFormulaCell*>& rCells
// Detach all formula cells that will be overwritten.
DetachFormulaCells(aPos, rCells.size());
for (size_t i = 0, n = rCells.size(); i < n; ++i)
if (!pDocument->IsClipOrUndo())
{
SCROW nThisRow = nRow + i;
sal_uInt32 nFmt = GetNumberFormat(nThisRow);
if ((nFmt % SV_COUNTRY_LANGUAGE_OFFSET) == 0)
rCells[i]->SetNeedNumberFormat(true);
for (size_t i = 0, n = rCells.size(); i < n; ++i)
{
SCROW nThisRow = nRow + i;
sal_uInt32 nFmt = GetNumberFormat(nThisRow);
if ((nFmt % SV_COUNTRY_LANGUAGE_OFFSET) == 0)
rCells[i]->SetNeedNumberFormat(true);
}
}
std::vector<sc::CellTextAttr> aDefaults(rCells.size(), sc::CellTextAttr());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment