[Libreoffice-commits] core.git: sc/source

Kohei Yoshida kohei.yoshida at collabora.com
Wed Sep 11 05:47:03 PDT 2013


 sc/source/filter/orcus/interface.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit ebb6d360d4482fde02552e3c3ccae00b0db5b64c
Author: Kohei Yoshida <kohei.yoshida at collabora.com>
Date:   Wed Sep 11 08:46:08 2013 -0400

    Do the same with orcus filter interface implementation.
    
    Change-Id: I5d457486e2b73e0c92e90ea05558887d3e6f6a3b

diff --git a/sc/source/filter/orcus/interface.cxx b/sc/source/filter/orcus/interface.cxx
index 6c9512a..03346d5 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();


More information about the Libreoffice-commits mailing list