summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-08-19 16:14:23 +0100
committerAndras Timar <andras.timar@collabora.com>2014-08-21 21:24:46 +0200
commita92e307d877cc00a908e59b26e70d3a53481aed7 (patch)
tree17a4dcc45d6268c41f56f335e66cada689912fae
parent5ee5be329897eab8d0c52882009eb5d820e872a4 (diff)
facepalm: nAvailHeight is not derived from allocation Width
Change-Id: Ic99c6519b02c546e0d3574cb756e3fb172d1ff52 (cherry picked from commit 36490fff3f4d1b4a7e4b7902a866abb177a0bf54) Reviewed-on: https://gerrit.libreoffice.org/11024 Reviewed-by: Andras Timar <andras.timar@collabora.com> Tested-by: Andras Timar <andras.timar@collabora.com>
-rw-r--r--vcl/source/window/layout.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/window/layout.cxx b/vcl/source/window/layout.cxx
index 8d8ab0d29369..517fa3317fea 100644
--- a/vcl/source/window/layout.cxx
+++ b/vcl/source/window/layout.cxx
@@ -1692,7 +1692,7 @@ void VclScrolledWindow::setAllocation(const Size &rAllocation)
if (pChild && pChild->IsVisible())
aChildReq = getLayoutRequisition(*pChild);
- long nAvailHeight = rAllocation.Width();
+ long nAvailHeight = rAllocation.Height();
long nAvailWidth = rAllocation.Width();
// vert. ScrollBar
if (GetStyle() & WB_AUTOVSCROLL)