diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2013-01-26 23:32:03 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2013-01-27 02:37:14 +0100 |
commit | 6033eaf5b85e01da61628c65ee92292eb2974617 (patch) | |
tree | 89153e52080cb101db067f6f2debc63c9bcd5c0b /sc | |
parent | remove some parameters (diff) | |
download | core-6033eaf5b85e01da61628c65ee92292eb2974617.tar.gz core-6033eaf5b85e01da61628c65ee92292eb2974617.zip |
we need to use SCROW for row numbers, fdo#59894
This caused an overflow and resulted in adding endless number of values
until a bad_alloc was thrown.
Change-Id: I954acd801eb18e2c2fe6a449048856cb95d0d8b0
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/data/colorscale.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/data/colorscale.cxx b/sc/source/core/data/colorscale.cxx index 3d36b4d06642..558b16c56820 100644 --- a/sc/source/core/data/colorscale.cxx +++ b/sc/source/core/data/colorscale.cxx @@ -293,7 +293,7 @@ std::vector<double>& ScColorFormat::getValues() const SCTAB nTab = pRange->aStart.Tab(); for(SCCOL nCol = pRange->aStart.Col(); nCol <= pRange->aEnd.Col(); ++nCol) { - for(SCCOL nRow = pRange->aStart.Row(); nRow <= pRange->aEnd.Row(); ++nRow) + for(SCROW nRow = pRange->aStart.Row(); nRow <= pRange->aEnd.Row(); ++nRow) { ScAddress aAddr(nCol, nRow, nTab); CellType eType = mpDoc->GetCellType(aAddr); |