diff options
author | Andreas Heinisch <andreas.heinisch@yahoo.de> | 2021-08-25 16:50:50 +0200 |
---|---|---|
committer | Andreas Heinisch <andreas.heinisch@yahoo.de> | 2021-08-26 21:48:22 +0200 |
commit | 02e48e4c27b2f55bd287717a12ebc68277878b75 (patch) | |
tree | 7f41a89e0d953e97af9f22316c292e86bc2275f9 /svtools | |
parent | d2015efaaaa1e98454c6e9e1b6083bd7103fbab3 (diff) |
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 <andreas.heinisch@yahoo.de>
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/table/tablecontrol_impl.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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() ) |