summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-11-28 10:09:23 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-11-28 10:16:00 +0000
commit1e514c8da8e37fc3cb26af6ddaf95a3ed8093a41 (patch)
treea364dd0b01de5005f5d037ca8242442eb1e3dee2
parentfix higher debug level build (diff)
downloadcore-1e514c8da8e37fc3cb26af6ddaf95a3ed8093a41.tar.gz
core-1e514c8da8e37fc3cb26af6ddaf95a3ed8093a41.zip
test rows for validity
Change-Id: I501c1c18df96b5b2ad628e86cfb724a541d5c4b6
-rw-r--r--sc/source/core/data/column3.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/sc/source/core/data/column3.cxx b/sc/source/core/data/column3.cxx
index 803bd3520811..4ddbabcc6842 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);
}