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,
}
if (rCol == MAXCOL+1)
return true;
else
for (;;)
{
bool bStop = false;
while (!bStop)
{
if (ValidCol(rCol))
{
bStop = aCol[rCol].GetNextSpellingCell(rRow, bInSel, rMark);
if (bStop)
return true;
else /*if (rRow == MAXROW+1) */
{
rCol++;
rRow = 0;
}
}
else
return true;
}
if (!ValidCol(rCol))
return true;
if (rCol >= GetAllocatedColumnsCount())
return true;
if (aCol[rCol].GetNextSpellingCell(rRow, bInSel, rMark))
return true;
/*else (rRow == MAXROW+1) */
rCol++;
rRow = 0;
}
return false;
}
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