Kaydet (Commit) f7936b8c authored tarafından Noel Grandin's avatar Noel Grandin

tdf#125051: fix spellchecking on Calc

Regression from
    commit 7282014e
    Date:   Fri Feb 1 15:15:16 2019 +0100
    tdf#50916 Makes numbers of columns dynamic.

Change-Id: Ibc96c36675d8b530b84f9680654f7d8a3b612d9c
Reviewed-on: https://gerrit.libreoffice.org/72053
Tested-by: Jenkins
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst 4709cd82
...@@ -2270,27 +2270,18 @@ bool ScTable::GetNextSpellingCell(SCCOL& rCol, SCROW& rRow, bool bInSel, ...@@ -2270,27 +2270,18 @@ bool ScTable::GetNextSpellingCell(SCCOL& rCol, SCROW& rRow, bool bInSel,
} }
if (rCol == MAXCOL+1) if (rCol == MAXCOL+1)
return true; return true;
else for (;;)
{ {
bool bStop = false; if (!ValidCol(rCol))
while (!bStop) return true;
{ if (rCol >= GetAllocatedColumnsCount())
if (ValidCol(rCol)) return true;
{ if (aCol[rCol].GetNextSpellingCell(rRow, bInSel, rMark))
bStop = aCol[rCol].GetNextSpellingCell(rRow, bInSel, rMark); return true;
if (bStop) /*else (rRow == MAXROW+1) */
return true; rCol++;
else /*if (rRow == MAXROW+1) */ rRow = 0;
{
rCol++;
rRow = 0;
}
}
else
return true;
}
} }
return false;
} }
void ScTable::TestTabRefAbs(SCTAB nTable) const void ScTable::TestTabRefAbs(SCTAB nTable) const
......
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