[Libreoffice-commits] .: Branch 'feature/cmclayouttrans' - vcl/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Tue Sep 18 05:33:29 PDT 2012
vcl/source/control/tabctrl.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 9f380c2ddf9f7c75ee01174d6b3249fd1169fc53
Author: Caolán McNamara <caolanm at redhat.com>
Date: Tue Sep 18 13:32:31 2012 +0100
calculate ideal tab size not current one
Change-Id: Ia57366baafb7bb5ecdd8b7ab3d1f52b6438d165e
diff --git a/vcl/source/control/tabctrl.cxx b/vcl/source/control/tabctrl.cxx
index 63081a4..9e6b66e 100644
--- a/vcl/source/control/tabctrl.cxx
+++ b/vcl/source/control/tabctrl.cxx
@@ -2217,7 +2217,7 @@ Size TabControl::calculateRequisition() const
TabControl* pThis = const_cast<TabControl*>(this);
sal_uInt16 nPos = it - mpTabCtrlData->maItemList.begin();
- Rectangle aTabRect = pThis->ImplGetTabRect(nPos, aPageSize.Width(), aPageSize.Height());
+ Rectangle aTabRect = pThis->ImplGetTabRect(nPos, LONG_MAX, LONG_MAX);
if (aTabRect.Bottom() > nTabLabelsBottom)
nTabLabelsBottom = aTabRect.Bottom();
More information about the Libreoffice-commits
mailing list