summaryrefslogtreecommitdiff
path: root/sc/source/core/data
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@collabora.com>2014-11-17 21:37:48 -0500
committerKohei Yoshida <kohei.yoshida@collabora.com>2014-11-18 08:31:58 -0500
commitbdc2c32f41ca6ca011ba68200ffde23a0740fc85 (patch)
tree15682a5ad00fbb67170e90c533988a787a20cfbc /sc/source/core/data
parent930af2a8ed2e6154a13886a8eabfd1920161b1d3 (diff)
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
Diffstat (limited to 'sc/source/core/data')
-rw-r--r--sc/source/core/data/documentimport.cxx4
1 files changed, 3 insertions, 1 deletions
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();
}