summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-01-10 12:15:29 +0000
committerCaolán McNamara <caolanm@redhat.com>2013-01-10 12:24:45 +0000
commitab893f2523545d4b06ef5c992026d6d4a777ae98 (patch)
treeea683e80f3283f2ddf76e53e392b6b263fd0182e
parentcc28bdc494d59181db58ade3bbafab3dc91c40a7 (diff)
Show takes a sal_Bool, 0x2000 gets truncated to 0, instead of true
Change-Id: I2226213019077e5882b6e27650f9a673e12710b5
-rw-r--r--vcl/source/window/layout.cxx4
1 files changed, 2 insertions, 2 deletions
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;
}