diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-04-16 11:05:57 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-09-28 08:48:16 +0100 |
commit | a4eb65b5bc068f1761c3a79cb86784152f72658f (patch) | |
tree | ae409c016ab2e9f7a97e747910385e7e7d578a85 /vcl/source/window/window.cxx | |
parent | 56fe698f6130ada063371c4bdd547954aff9b85d (diff) |
implement Grid and Box properties
Diffstat (limited to 'vcl/source/window/window.cxx')
-rw-r--r-- | vcl/source/window/window.cxx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/vcl/source/window/window.cxx b/vcl/source/window/window.cxx index 512b5d514646..e4f6b7d0a08b 100644 --- a/vcl/source/window/window.cxx +++ b/vcl/source/window/window.cxx @@ -9678,10 +9678,7 @@ bool Window::set_property(const rtl::OString &rKey, const rtl::OString &rValue) if (rKey.equalsL(RTL_CONSTASCII_STRINGPARAM("label"))) SetText(rtl::OStringToOUString(rValue, RTL_TEXTENCODING_UTF8)); else if (rKey.equalsL(RTL_CONSTASCII_STRINGPARAM("visible"))) - { - bool bIsVisible = (rValue[0] == 't' || rValue[0] == 'T' || rValue[0] == '1'); - Show(bIsVisible); - } + Show(toBool(rValue)); else if (rKey.equalsL(RTL_CONSTASCII_STRINGPARAM("xalign"))) { WinBits nBits = GetStyle(); |