[Libreoffice-commits] core.git: Branch 'libreoffice-4-3' - vcl/source
Caolán McNamara
caolanm at redhat.com
Tue Aug 19 23:15:40 PDT 2014
vcl/source/window/layout.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit dac4825abef1c9a4d970dab7dbec26673126342a
Author: Caolán McNamara <caolanm at redhat.com>
Date: Tue Aug 19 16:14:23 2014 +0100
facepalm: nAvailHeight is not derived from allocation Width
Change-Id: Ic99c6519b02c546e0d3574cb756e3fb172d1ff52
(cherry picked from commit 36490fff3f4d1b4a7e4b7902a866abb177a0bf54)
Reviewed-on: https://gerrit.libreoffice.org/11023
Reviewed-by: Andras Timar <andras.timar at collabora.com>
Tested-by: Andras Timar <andras.timar at collabora.com>
diff --git a/vcl/source/window/layout.cxx b/vcl/source/window/layout.cxx
index 5ae3412..9e204a8 100644
--- a/vcl/source/window/layout.cxx
+++ b/vcl/source/window/layout.cxx
@@ -1694,7 +1694,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)
More information about the Libreoffice-commits
mailing list