summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@collabora.com>2013-09-11 08:46:08 -0400
committerKohei Yoshida <kohei.yoshida@collabora.com>2013-09-11 08:48:48 -0400
commitebb6d360d4482fde02552e3c3ccae00b0db5b64c (patch)
treede0587486e531298c980d6f77c688fe74c24bd70 /sc
parentfadd7e8aa66dad627acfb59c4310ddc4afa6742e (diff)
Do the same with orcus filter interface implementation.
Change-Id: I5d457486e2b73e0c92e90ea05558887d3e6f6a3b
Diffstat (limited to 'sc')
-rw-r--r--sc/source/filter/orcus/interface.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sc/source/filter/orcus/interface.cxx b/sc/source/filter/orcus/interface.cxx
index 6c9512a2f360..03346d55037f 100644
--- a/sc/source/filter/orcus/interface.cxx
+++ b/sc/source/filter/orcus/interface.cxx
@@ -378,7 +378,7 @@ void ScOrcusSheet::set_shared_formula(
// formulas across multiple columns.
ScFormulaCellGroupRef xNewGroup(new ScFormulaCellGroup);
xNewGroup->mnStart = aRange.aStart.Row();
- xNewGroup->mnLength = aRange.aEnd.Row() - aRange.aStart.Row() + 1;
+ xNewGroup->mnLength = 1;
xNewGroup->setCode(*pArray);
maFormulaGroups.set(sindex, nCol, xNewGroup);
}
@@ -406,6 +406,7 @@ void ScOrcusSheet::set_shared_formula(os::row_t row, os::col_t col, size_t sinde
if (!xGroup)
return;
+ xGroup->mnLength = aPos.Row() - xGroup->mnStart + 1;
ScFormulaCell* pCell = new ScFormulaCell(&mrDoc.getDoc(), aPos, xGroup);
mrDoc.setFormulaCell(aPos, pCell);
cellInserted();