vcl/source/control/tabctrl.cxx | 3 +++ 1 file changed, 3 insertions(+)
New commits: commit 4d73a7227f4f341aece7ab3376823f70a3e87d71 Author: Szymon KÅos <eszka...@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 <c...@libreoffice.org> Reviewed-by: Szymon KÅos <eszka...@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;
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits