Kaydet (Commit) 6033eaf5 authored tarafından Markus Mohrhard's avatar Markus Mohrhard

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
üst bfc674c2
...@@ -293,7 +293,7 @@ std::vector<double>& ScColorFormat::getValues() const ...@@ -293,7 +293,7 @@ std::vector<double>& ScColorFormat::getValues() const
SCTAB nTab = pRange->aStart.Tab(); SCTAB nTab = pRange->aStart.Tab();
for(SCCOL nCol = pRange->aStart.Col(); nCol <= pRange->aEnd.Col(); ++nCol) 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); ScAddress aAddr(nCol, nRow, nTab);
CellType eType = mpDoc->GetCellType(aAddr); CellType eType = mpDoc->GetCellType(aAddr);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment