summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@collabora.com>2014-01-27 19:16:30 -0500
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2014-01-28 02:50:59 +0000
commit795c5e629987906dea66c690313b3aa1590d7887 (patch)
treec517f02c2f50008e2debe9e5fb21d4c606100dac /sc
parentb99a2691484e9b0533530ad4f02e15ad4031b74b (diff)
fdo#69244: Avoid putting these cells in formula tree prematurely.
Marking the cell dirty alone appears to be sufficient to trigger resetting of number format. SetDirty() would mark it dirty *and* put the cell into formula tree, which would prevent proper value propagation as seen in the bug report. Change-Id: Ib4000e955dec43ba976d1486e1e80d7b64197c80 Reviewed-on: https://gerrit.libreoffice.org/7708 Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/data/column.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/data/column.cxx b/sc/source/core/data/column.cxx
index 984633ce454b..c6b55a1db48c 100644
--- a/sc/source/core/data/column.cxx
+++ b/sc/source/core/data/column.cxx
@@ -2268,7 +2268,7 @@ void ScColumn::CompileXML( ScProgress& rProgress )
if( (nCellFormat % SV_COUNTRY_LANGUAGE_OFFSET) != 0)
pFCell->SetNeedNumberFormat(false);
else
- pFCell->SetDirty(true);
+ pFCell->SetDirtyVar();
pFCell->CompileXML( rProgress );
if ( nRow != maItems[i].nRow )