[Libreoffice-commits] core.git: vcl/source
Szymon Kłos
eszkadev at gmail.com
Mon Feb 27 14:13:02 UTC 2017
vcl/source/control/tabctrl.cxx | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit 4d73a7227f4f341aece7ab3376823f70a3e87d71
Author: Szymon Kłos <eszkadev at gmail.com>
Date: Mon Feb 27 12:35:49 2017 +0100
tdf#102779 Notebookbar: extra space for small tab labels
Change-Id: I2cd7be7ef49552acd84aa4b5042955dcb18f328f
Reviewed-on: https://gerrit.libreoffice.org/34679
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Szymon Kłos <eszkadev at gmail.com>
diff --git a/vcl/source/control/tabctrl.cxx b/vcl/source/control/tabctrl.cxx
index 2a6470d..7e8145d 100644
--- a/vcl/source/control/tabctrl.cxx
+++ b/vcl/source/control/tabctrl.cxx
@@ -2397,6 +2397,9 @@ bool NotebookbarTabControl::ImplPlaceTabs( long nWidth )
nLinePosAry[nLines] = nPos;
}
+ if( !it->maText.isEmpty() && aSize.getWidth() < 100)
+ aSize.Width() = 100;
+
Rectangle aNewRect( Point( nX, nY ), aSize );
if ( mbSmallInvalidate && (it->maRect != aNewRect) )
mbSmallInvalidate = false;
More information about the Libreoffice-commits
mailing list