vcl/source/control/tabctrl.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit d3dd080524d98bcf0560d3b54ad2309610b22c20
Author:     Patrick Luby <guibmac...@gmail.com>
AuthorDate: Thu Aug 22 17:03:27 2024 -0400
Commit:     Patrick Luby <guibomac...@gmail.com>
CommitDate: Wed Aug 28 15:23:19 2024 +0200

    tdf#127610 subtract width of shortcuts from width available for tab items
    
    Change-Id: Ia520f6b982e52e7154b3b02ba77562a3b212efd1
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172301
    Reviewed-by: Patrick Luby <guibomac...@gmail.com>
    Reviewed-by: Heiko Tietze <heiko.tie...@documentfoundation.org>
    Tested-by: Jenkins

diff --git a/vcl/source/control/tabctrl.cxx b/vcl/source/control/tabctrl.cxx
index a0e24d8a37a0..b104c6ee5e27 100644
--- a/vcl/source/control/tabctrl.cxx
+++ b/vcl/source/control/tabctrl.cxx
@@ -2375,7 +2375,8 @@ bool NotebookbarTabControlBase::ImplPlaceTabs( 
tools::Long nWidth )
     }
 
     // we always have only one line of tabs
-    lcl_AdjustSingleLineTabs(nMaxWidth, mpTabCtrlData.get());
+    // tdf#127610 subtract width of shortcuts from width available for tab 
items
+    lcl_AdjustSingleLineTabs(nMaxWidth - nShortcutsWidth, mpTabCtrlData.get());
 
     // position the shortcutbox
     if (m_pShortcuts)

Reply via email to