diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-08-19 16:14:23 +0100 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2014-08-20 01:15:36 -0500 |
commit | 14bdff6f667ab28e14618fcb3dfb83bf2c2c765f (patch) | |
tree | 461cf8520d21508a94b61441ea32a5c454f96ba7 | |
parent | 2a12ec16edbfad4c25c2cfe261c39fcb69abb4c6 (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.cxx | 2 |
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) |