[Libreoffice-commits] core.git: Branch 'libreoffice-4-3-5' - sc/source

Caolán McNamara caolanm at redhat.com
Thu Dec 4 03:18:31 PST 2014


 sc/source/core/data/column3.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 1e6abaa8b97f537ee76c5e3e7501ccddb88c50ce
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Fri Nov 28 10:09:23 2014 +0000

    test rows for validity
    
    Change-Id: I501c1c18df96b5b2ad628e86cfb724a541d5c4b6
    Reviewed-on: https://gerrit.libreoffice.org/13170
    Reviewed-by: Eike Rathke <erack at redhat.com>
    Tested-by: Eike Rathke <erack at redhat.com>
    Reviewed-by: Markus Mohrhard <markus.mohrhard at googlemail.com>
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/sc/source/core/data/column3.cxx b/sc/source/core/data/column3.cxx
index aa84d8d..924c9e3 100644
--- a/sc/source/core/data/column3.cxx
+++ b/sc/source/core/data/column3.cxx
@@ -101,6 +101,9 @@ struct DirtyCellInterpreter
 
 void ScColumn::InterpretDirtyCells( SCROW nRow1, SCROW nRow2 )
 {
+    if (!ValidRow(nRow1) || !ValidRow(nRow2) || nRow1 > nRow2)
+        return;
+
     DirtyCellInterpreter aFunc;
     sc::ProcessFormula(maCells.begin(), maCells, nRow1, nRow2, aFunc);
 }


More information about the Libreoffice-commits mailing list