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

tdf#119305 Chart created from fully selected sheet only targets header row

regression from
    commit 3acc5a23
    tdf#69977 improve creation of large charts

Change-Id: I09d02447b0e4691e98a44222608a3dc5edc95b0b
Reviewed-on: https://gerrit.libreoffice.org/60318
Tested-by: Jenkins
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst 6d79c2f5
......@@ -1123,8 +1123,10 @@ void ScTable::LimitChartArea( SCCOL& rStartCol, SCROW& rStartRow, SCCOL& rEndCol
// Optimised loop for finding the bottom of the area, can be costly in large
// spreadsheets.
SCROW lastDataPos = 0;
for (SCCOL i=rStartCol; i<=rEndCol; i++)
rEndRow = std::min(rEndRow, aCol[i].GetLastDataPos());
lastDataPos = std::max(lastDataPos, aCol[i].GetLastDataPos());
rEndRow = std::min(rEndRow, lastDataPos);
}
SCCOL ScTable::FindNextVisibleCol( SCCOL nCol, bool bRight ) 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