From a4eb65b5bc068f1761c3a79cb86784152f72658f Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 16 Apr 2012 11:05:57 +0100 Subject: implement Grid and Box properties --- vcl/source/window/window.cxx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'vcl/source/window/window.cxx') 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(); -- cgit