summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSzymon Kłos <eszkadev@gmail.com>2017-02-27 12:35:49 +0100
committerSzymon Kłos <eszkadev@gmail.com>2017-02-27 14:12:33 +0000
commit4d73a7227f4f341aece7ab3376823f70a3e87d71 (patch)
tree7b5ce24c2822580d6a6e669d0aab03d3bfef72f6
parent5ada20b3588f76cad5b7f39442147fca3d63bec7 (diff)
tdf#102779 Notebookbar: extra space for small tab labels
Change-Id: I2cd7be7ef49552acd84aa4b5042955dcb18f328f Reviewed-on: https://gerrit.libreoffice.org/34679 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Szymon Kłos <eszkadev@gmail.com>
-rw-r--r--vcl/source/control/tabctrl.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/vcl/source/control/tabctrl.cxx b/vcl/source/control/tabctrl.cxx
index 2a6470dceb8a..7e8145d6389b 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;