[Libreoffice-commits] core.git: svtools/source

Andreas Heinisch (via logerrit) logerrit at kemper.freedesktop.org
Thu Aug 26 19:48:58 UTC 2021


 svtools/source/table/tablecontrol_impl.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 02e48e4c27b2f55bd287717a12ebc68277878b75
Author:     Andreas Heinisch <andreas.heinisch at yahoo.de>
AuthorDate: Wed Aug 25 16:50:50 2021 +0200
Commit:     Andreas Heinisch <andreas.heinisch at yahoo.de>
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 <andreas.heinisch at yahoo.de>

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() )


More information about the Libreoffice-commits mailing list