diff options
author | Eike Rathke <erack@redhat.com> | 2018-10-04 19:25:39 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2018-10-04 21:31:05 +0200 |
commit | 1371c2f4edab5086af6d0661de046252def29455 (patch) | |
tree | 605ce758d713f2d53dd993de010b63520e5a058f | |
parent | 2cae2ecfef47d8dd10647c10f9577392c1887d3a (diff) |
Do not let end row creep above start row, tdf#69977 tdf#119305 follow-up
commit 3acc5a2383f5b0458e3caf1505fe6b8ad7dc3fb0
CommitDate: Tue Mar 27 13:26:30 2018 +0200
tdf#69977 improve creation of large charts
changed the loop such that it removed the stop condition for
rStartRow < rEndRow, and
commit aaa3c31ba79b1b3d335dcf55d72837a13411b45e
CommitDate: Tue Sep 11 20:29:04 2018 +0200
tdf#119305 Chart created from fully selected sheet only
targets header row
still checks only for a minimum of the original end row and the
last data row, which for an empty (no data) range selected may be
above the start row.
Change-Id: I9de08d09be62e86e7c946df701c49314fa4d682e
Reviewed-on: https://gerrit.libreoffice.org/61389
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Jenkins
-rw-r--r-- | sc/source/core/data/table1.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/data/table1.cxx b/sc/source/core/data/table1.cxx index d0b977c315dd..9c37721660d0 100644 --- a/sc/source/core/data/table1.cxx +++ b/sc/source/core/data/table1.cxx @@ -1126,7 +1126,7 @@ void ScTable::LimitChartArea( SCCOL& rStartCol, SCROW& rStartRow, SCCOL& rEndCol SCROW lastDataPos = 0; for (SCCOL i=rStartCol; i<=rEndCol; i++) lastDataPos = std::max(lastDataPos, aCol[i].GetLastDataPos()); - rEndRow = std::min(rEndRow, lastDataPos); + rEndRow = std::max( rStartRow, std::min(rEndRow, lastDataPos)); } SCCOL ScTable::FindNextVisibleCol( SCCOL nCol, bool bRight ) const |