diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-03-31 09:20:02 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-03-31 09:22:44 +0100 |
commit | 902ed18886e321e80a95250fee423f6e871ceb28 (patch) | |
tree | 22f39a531c8a6c5b74c174cd923eaa4782a0a670 /vcl/source | |
parent | e6ff457de6f99c7c51e8dfe4295f4be7fbbc94a0 (diff) |
use toBool
Change-Id: I334570bac6f0ab8fbd606610f0dcd812041c72b1
Diffstat (limited to 'vcl/source')
-rw-r--r-- | vcl/source/window/window2.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/window/window2.cxx b/vcl/source/window/window2.cxx index acab1b85f931..73fe6749c3a1 100644 --- a/vcl/source/window/window2.cxx +++ b/vcl/source/window/window2.cxx @@ -1865,7 +1865,7 @@ bool Window::set_font_attribute(const OString &rKey, const OString &rValue) aFont.SetItalic(ITALIC_NORMAL); SetControlFont(aFont); } - else if (rKey == "underline" && rValue == "True") + else if (rKey == "underline" && toBool(rValue) == true) { Font aFont(GetControlFont()); aFont.SetUnderline(UNDERLINE_SINGLE); |