summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-01-26 23:32:03 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-01-27 02:37:14 +0100
commit6033eaf5b85e01da61628c65ee92292eb2974617 (patch)
tree89153e52080cb101db067f6f2debc63c9bcd5c0b
parentbfc674c2cedfa8a07a67e71d1ca976e2556bef4d (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
-rw-r--r--sc/source/core/data/colorscale.cxx2
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);