[Libreoffice-commits] core.git: vcl/source
Caolán McNamara
caolanm at redhat.com
Tue Aug 19 09:21:03 PDT 2014
vcl/source/window/layout.cxx | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
New commits:
commit 749f7548b4ee746d69c20a828ea6d3b853eba8d3
Author: Caolán McNamara <caolanm at redhat.com>
Date: Tue Aug 19 17:20:00 2014 +0100
only subtract height of hscroll if visible
otherwise infinite loop in extensions update check
Change-Id: I0dbf4f34208f1bf0854e365006a79470b26571f3
diff --git a/vcl/source/window/layout.cxx b/vcl/source/window/layout.cxx
index ffce00d..88823f1 100644
--- a/vcl/source/window/layout.cxx
+++ b/vcl/source/window/layout.cxx
@@ -1706,8 +1706,11 @@ void VclScrolledWindow::setAllocation(const Size &rAllocation)
// horz. ScrollBar
if (GetStyle() & WB_AUTOHSCROLL)
{
- m_aHScroll.Show(nAvailWidth < aChildReq.Width());
- nAvailHeight -= getLayoutRequisition(m_aHScroll).Height();
+ bool bShowHScroll = nAvailWidth < aChildReq.Width();
+ m_aHScroll.Show(bShowHScroll);
+
+ if (bShowHScroll)
+ nAvailHeight -= getLayoutRequisition(m_aHScroll).Height();
if (GetStyle() & WB_AUTOVSCROLL)
m_aVScroll.Show(nAvailHeight < aChildReq.Height());
More information about the Libreoffice-commits
mailing list