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

Eike Rathke erack at redhat.com
Thu Oct 22 09:43:53 PDT 2015


 sc/qa/unit/ucalc_formula.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 8e49a523c932936c1e38e0d26e5946619c2ed321
Author: Eike Rathke <erack at redhat.com>
Date:   Thu Oct 22 18:19:23 2015 +0200

    be precise in what area to insert the matrix formula
    
    Change-Id: If41b7af52d506464aef32bfddd11de8e3f44ed32

diff --git a/sc/qa/unit/ucalc_formula.cxx b/sc/qa/unit/ucalc_formula.cxx
index fda104e..52e1cb3 100644
--- a/sc/qa/unit/ucalc_formula.cxx
+++ b/sc/qa/unit/ucalc_formula.cxx
@@ -3825,7 +3825,7 @@ void Test::testFuncIFERROR()
     const SCROW nElems2 = SAL_N_ELEMENTS(aCheck2);
     const SCCOL nStartCol = aPos.Col() + nCols;
     const SCROW nStartRow = aPos.Row() + nElems2;
-    m_pDoc->InsertMatrixFormula( nStartCol, nStartRow, nStartCol+nCols, nStartRow+nElems2, aMark,
+    m_pDoc->InsertMatrixFormula( nStartCol, nStartRow, nStartCol+nCols-1, nStartRow+nElems2-1, aMark,
             "=IFERROR(C1:E3;\"Error\")", NULL);
 
     m_pDoc->CalcAll();


More information about the Libreoffice-commits mailing list