summaryrefslogtreecommitdiff
path: root/vcl/source/window/layout.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-03-30 12:58:13 +0100
committerCaolán McNamara <caolanm@redhat.com>2018-03-30 16:06:01 +0100
commit383db30b15b2eba94ac49ab4125ddb9a20946684 (patch)
tree29de7587174d40453828845907933a81062ac0f3 /vcl/source/window/layout.cxx
parent98c2a323a9c371276a966362c7a75329b9e31fec (diff)
aChildAllocation variable only set
Change-Id: I4a5c4e2b9c82dcaf8a48d411539a17dc0f1cfa15
Diffstat (limited to 'vcl/source/window/layout.cxx')
-rw-r--r--vcl/source/window/layout.cxx7
1 files changed, 1 insertions, 6 deletions
diff --git a/vcl/source/window/layout.cxx b/vcl/source/window/layout.cxx
index 2032cd433a98..64c8676e357f 100644
--- a/vcl/source/window/layout.cxx
+++ b/vcl/source/window/layout.cxx
@@ -1909,7 +1909,6 @@ void VclScrolledWindow::InitScrollBars(const Size &rRequest)
void VclScrolledWindow::setAllocation(const Size &rAllocation)
{
- Size aChildAllocation(rAllocation);
Size aChildReq;
vcl::Window *pChild = get_child();
@@ -1940,7 +1939,7 @@ void VclScrolledWindow::setAllocation(const Size &rAllocation)
m_pVScroll->Show(nAvailHeight < aChildReq.Height());
}
- Size aInnerSize(aChildAllocation);
+ Size aInnerSize(rAllocation);
long nScrollBarWidth = 0, nScrollBarHeight = 0;
if (m_pVScroll->IsVisible())
@@ -1949,9 +1948,7 @@ void VclScrolledWindow::setAllocation(const Size &rAllocation)
Point aScrollPos(rAllocation.Width() - nScrollBarWidth, 0);
Size aScrollSize(nScrollBarWidth, rAllocation.Height());
setLayoutAllocation(*m_pVScroll, aScrollPos, aScrollSize);
- aChildAllocation.AdjustWidth( -nScrollBarWidth );
aInnerSize.AdjustWidth( -nScrollBarWidth );
- aChildAllocation.setHeight( aChildReq.Height() );
}
if (m_pHScroll->IsVisible())
@@ -1960,9 +1957,7 @@ void VclScrolledWindow::setAllocation(const Size &rAllocation)
Point aScrollPos(0, rAllocation.Height() - nScrollBarHeight);
Size aScrollSize(rAllocation.Width(), nScrollBarHeight);
setLayoutAllocation(*m_pHScroll, aScrollPos, aScrollSize);
- aChildAllocation.AdjustHeight( -nScrollBarHeight );
aInnerSize.AdjustHeight( -nScrollBarHeight );
- aChildAllocation.setWidth( aChildReq.Width() );
}
if (m_pVScroll->IsVisible() && m_pHScroll->IsVisible())