svtools/source/table/tablecontrol_impl.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 02e48e4c27b2f55bd287717a12ebc68277878b75 Author: Andreas Heinisch <[email protected]> AuthorDate: Wed Aug 25 16:50:50 2021 +0200 Commit: Andreas Heinisch <[email protected]> CommitDate: Thu Aug 26 21:48:22 2021 +0200 tdf#143169 - Remove additional row header width If the table control has row headings, add the extra row width only at the beginning of each row and not at the end. Otherwise the renderer of the table control adds an additional column with the width of the row header of the table. Change-Id: I0acb67f21d0ad756ed53c56690d3f2deb50de8e3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121038 Tested-by: Jenkins Reviewed-by: Andreas Heinisch <[email protected]> diff --git a/svtools/source/table/tablecontrol_impl.cxx b/svtools/source/table/tablecontrol_impl.cxx index d0124e290ad2..fbfa551d2c87 100644 --- a/svtools/source/table/tablecontrol_impl.cxx +++ b/svtools/source/table/tablecontrol_impl.cxx @@ -516,7 +516,7 @@ namespace svt::table ColumnPositions::const_reverse_iterator loop = m_aColumnWidths.rbegin(); do { - aArea.SetRight( loop->getEnd() - nScrolledOutLeft + m_nRowHeaderWidthPixel ); + aArea.SetRight(loop->getEnd() - nScrolledOutLeft); ++loop; } while ( ( loop != m_aColumnWidths.rend() )
