summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-09-18 13:32:31 +0100
committerCaolán McNamara <caolanm@redhat.com>2012-09-28 08:48:48 +0100
commit14a6d94e1f4a5df78e446efd327a6f5c15aaeab9 (patch)
tree6d3de6ca8e2be64e3a28c11a6dc4097518dccac2 /vcl
parentfca9bc70c08c83e75d9d2fb35b64a972d852bf84 (diff)
calculate ideal tab size not current one
Change-Id: Ia57366baafb7bb5ecdd8b7ab3d1f52b6438d165e
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/control/tabctrl.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/control/tabctrl.cxx b/vcl/source/control/tabctrl.cxx
index fef793d10699..a3c6ff6d7a8b 100644
--- a/vcl/source/control/tabctrl.cxx
+++ b/vcl/source/control/tabctrl.cxx
@@ -2200,7 +2200,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();