From ab893f2523545d4b06ef5c992026d6d4a777ae98 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Thu, 10 Jan 2013 12:15:29 +0000 Subject: Show takes a sal_Bool, 0x2000 gets truncated to 0, instead of true Change-Id: I2226213019077e5882b6e27650f9a673e12710b5 --- vcl/source/window/layout.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vcl/source') diff --git a/vcl/source/window/layout.cxx b/vcl/source/window/layout.cxx index 6a071b188124..5c0d7fdae1ad 100644 --- a/vcl/source/window/layout.cxx +++ b/vcl/source/window/layout.cxx @@ -1326,8 +1326,8 @@ Size VclScrolledWindow::getVisibleChildSize() const bool VclScrolledWindow::set_property(const rtl::OString &rKey, const rtl::OString &rValue) { bool bRet = VclBin::set_property(rKey, rValue); - m_aVScroll.Show(GetStyle() & WB_VERT); - m_aHScroll.Show(GetStyle() & WB_HORZ); + m_aVScroll.Show((GetStyle() & WB_VSCROLL) != 0); + m_aHScroll.Show((GetStyle() & WB_HSCROLL) != 0); return bRet; } -- cgit