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

fix bug in ScTable::LastHiddenColRow

found by inspection, noticed that the for loop is not actually using
it's index variable

introduced in

    commit b3579d71
    koheirowlimitperf: #i109369# #i109373# #i109384# #i109385# #i109386#
million, and integrated lots of speed optimization and bug fixes to
ensure Calc remains usable after the row limit increase.

Change-Id: Icfee19ddb051e8d4333ed4c91d384379bf494444
Reviewed-on: https://gerrit.libreoffice.org/41439Reviewed-by: 's avatarJulien Nabet <serval2412@yahoo.fr>
Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst 57d53530
...@@ -764,8 +764,8 @@ SCCOLROW ScTable::LastHiddenColRow(SCCOLROW nPos, bool bCol) const ...@@ -764,8 +764,8 @@ SCCOLROW ScTable::LastHiddenColRow(SCCOLROW nPos, bool bCol) const
{ {
for (SCCOL i = nCol+1; i <= MAXCOL; ++i) for (SCCOL i = nCol+1; i <= MAXCOL; ++i)
{ {
if (!ColHidden(nCol)) if (!ColHidden(i))
return nCol - 1; return i - 1;
} }
} }
} }
......
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