Kaydet (Commit) ae80e14a authored tarafından Marco Cecchetti's avatar Marco Cecchetti Kaydeden (comit) Marco Cecchetti

lok: calc: fix: CTRL+RIGHT => crash

Change-Id: I5c127aa4cbdca5e13d2329c1fb68f466464fe432
Reviewed-on: https://gerrit.libreoffice.org/45790Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarMarco Cecchetti <mrcekets@gmail.com>
üst afd1a6b5
......@@ -1066,7 +1066,8 @@ namespace {
{
long nTmp = 0; // row/col to render for nPosition
long nLastScrPos = 0, nScrPos = 0;
while (nScrPos <= nPosition && nTmp < MAXROW)
const long nMaxIndex = bRowNotCol ? MAXROW : MAXCOL;
while (nScrPos <= nPosition && nTmp < nMaxIndex)
{
long nSize = bRowNotCol ? pDoc->GetRowHeight( nTmp, nTabNo )
: pDoc->GetColWidth( nTmp, nTabNo );
......
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