diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2013-01-26 23:32:03 +0100 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-02-01 17:07:41 +0000 |
commit | 008b8c4ca907950af543da91986ba89b0de1ae15 (patch) | |
tree | 0c1bfb16d6013d8a6dbfd3d78fe6d1e469bfa42b /sc/source/core | |
parent | e39fe8bc29af60e849534b6cb1882dbcec363052 (diff) |
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
Reviewed-on: https://gerrit.libreoffice.org/1945
Reviewed-by: Kohei Yoshida <kohei.yoshida@gmail.com>
Tested-by: Kohei Yoshida <kohei.yoshida@gmail.com>
Diffstat (limited to 'sc/source/core')
-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 55b8b437d0ce..3fe033a9d393 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); |