From bdc2c32f41ca6ca011ba68200ffde23a0740fc85 Mon Sep 17 00:00:00 2001 From: Kohei Yoshida Date: Mon, 17 Nov 2014 21:37:48 -0500 Subject: Regroup formula cells in columns before initializing them. Because the initialization of area listeners now depend on the grouped status of formula cells. Change-Id: Idf61f57387ba62c57d87030c16544bc07836826f --- sc/source/core/data/documentimport.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sc/source/core/data/documentimport.cxx b/sc/source/core/data/documentimport.cxx index 02242cbac7bc..48878f59eb84 100644 --- a/sc/source/core/data/documentimport.cxx +++ b/sc/source/core/data/documentimport.cxx @@ -604,10 +604,12 @@ void ScDocumentImport::finalize() void ScDocumentImport::initColumn(ScColumn& rCol) { + rCol.RegroupFormulaCells(); + CellStoreInitializer aFunc(*mpImpl, rCol.nTab, rCol.nCol); std::for_each(rCol.maCells.begin(), rCol.maCells.end(), aFunc); aFunc.swap(rCol.maCellTextAttrs); - rCol.RegroupFormulaCells(); + rCol.CellStorageModified(); } -- cgit