[Libreoffice-commits] core.git: vcl/source
Yousuf Philips
philipz85 at hotmail.com
Sat Apr 22 08:48:42 UTC 2017
vcl/source/control/tabctrl.cxx | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit 59ef98de50ad7892454b35bec823df6869ec6421
Author: Yousuf Philips <philipz85 at hotmail.com>
Date: Sat Apr 22 05:00:11 2017 +0400
tdf#102779 Set a minimum height for Notebookbar tabs
Change-Id: Ieccd9c721632c4e194afcfab53322aab315174cd
Reviewed-on: https://gerrit.libreoffice.org/36810
Reviewed-by: Szymon Kłos <szymon.klos at collabora.com>
Tested-by: Szymon Kłos <szymon.klos at collabora.com>
diff --git a/vcl/source/control/tabctrl.cxx b/vcl/source/control/tabctrl.cxx
index 4f87c097f88d..0c39d870e6aa 100644
--- a/vcl/source/control/tabctrl.cxx
+++ b/vcl/source/control/tabctrl.cxx
@@ -2421,6 +2421,9 @@ bool NotebookbarTabControlBase::ImplPlaceTabs( long nWidth )
if( !it->maText.isEmpty() && aSize.getWidth() < 100)
aSize.Width() = 100;
+ if( !it->maText.isEmpty() && aSize.getHeight() < 28 )
+ aSize.Height() = 28;
+
tools::Rectangle aNewRect( Point( nX, nY ), aSize );
if ( mbSmallInvalidate && (it->maRect != aNewRect) )
mbSmallInvalidate = false;
More information about the Libreoffice-commits
mailing list