diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-11-28 10:09:23 +0000 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2014-11-29 07:32:53 +0100 |
commit | 87680ce21c2ca075e80f82c76d268490f68ff6aa (patch) | |
tree | cf893dde2b850ea22b6c4998ac7f961a31c4a253 /sc | |
parent | e6ba8783aaacd9759ea6807ca67013115dea2337 (diff) |
test rows for validity
Change-Id: I501c1c18df96b5b2ad628e86cfb724a541d5c4b6
(cherry picked from commit 1e514c8da8e37fc3cb26af6ddaf95a3ed8093a41)
Reviewed-on: https://gerrit.libreoffice.org/13171
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/data/column3.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sc/source/core/data/column3.cxx b/sc/source/core/data/column3.cxx index c311e37cab24..146e0261fcb4 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); } |