summaryrefslogtreecommitdiffstats
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-17 21:37:48 -0500
commitcb217e201eb5fb8f2ce48dae4a033f0af4b56495 (patch)
tree79d996627ad24b8c0d670fd9f9332d72e92e5fc3
parentNew test for testing group area listener behaviors during formula pasting. (diff)
downloadcore-cb217e201eb5fb8f2ce48dae4a033f0af4b56495.tar.gz
core-cb217e201eb5fb8f2ce48dae4a033f0af4b56495.zip
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
-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();
}