From 7a7ef5a915f7e4f4a9a21b819ab1013d6333a8d8 Mon Sep 17 00:00:00 2001 From: Kohei Yoshida Date: Mon, 27 Jan 2014 19:08:30 -0500 Subject: 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: Ie68f996112938fe286a9bd50c38404f9df6f4ca1 (cherry picked from commit f571104ef38ba9f7f6073e22c2374add7aa73887) Reviewed-on: https://gerrit.libreoffice.org/7707 Tested-by: Markus Mohrhard Reviewed-by: Markus Mohrhard --- sc/source/core/data/column.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sc') diff --git a/sc/source/core/data/column.cxx b/sc/source/core/data/column.cxx index 007e9e317cf2..8c6102f9c79f 100644 --- a/sc/source/core/data/column.cxx +++ b/sc/source/core/data/column.cxx @@ -2863,7 +2863,7 @@ public: if( (nFormat % SV_COUNTRY_LANGUAGE_OFFSET) != 0) pCell->SetNeedNumberFormat(false); else - pCell->SetDirty(true); + pCell->SetDirtyVar(); pCell->CompileXML(mrProgress); } -- cgit v1.2.3