[Libreoffice-commits] core.git: svtools/source
Tomaž Vajngerl (via logerrit)
logerrit at kemper.freedesktop.org
Fri May 31 07:26:11 UTC 2019
svtools/source/control/tabbar.cxx | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
New commits:
commit 35870d411de99f278507785c4386dd02f9537073
Author: Tomaž Vajngerl <tomaz.vajngerl at collabora.co.uk>
AuthorDate: Thu May 30 17:18:29 2019 +0900
Commit: Tomaž Vajngerl <quikee at gmail.com>
CommitDate: Fri May 31 09:25:33 2019 +0200
tdf#124572 Reduce tab bar item width
The width of an tab item is now reduced and is increased by the
icon width when the protected icon needs to be drawn (so on
demand).
Change-Id: Ib4a4742b28ebab21d33e9408e3c416b1f28c6ac2
Reviewed-on: https://gerrit.libreoffice.org/73208
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee at gmail.com>
diff --git a/svtools/source/control/tabbar.cxx b/svtools/source/control/tabbar.cxx
index 74623f18db65..f1dbc69bccb0 100644
--- a/svtools/source/control/tabbar.cxx
+++ b/svtools/source/control/tabbar.cxx
@@ -668,7 +668,9 @@ bool TabBar::ImplCalcWidth()
// Padding is dependent on font height - bigger font = bigger padding
long nFontWidth = aFont.GetFontHeight();
- nNewWidth += nFontWidth * 5;
+ if (pItem->mbProtect)
+ nNewWidth += 24;
+ nNewWidth += nFontWidth * 2;
if (pItem->mnWidth != nNewWidth)
{
More information about the Libreoffice-commits
mailing list