[Libreoffice-commits] core.git: vcl/source
Andrzej Hunt
andrzej at ahunt.org
Mon Jun 1 00:05:51 PDT 2015
vcl/source/window/window2.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 60391b4726b6c00950fddb6088ffcc0a1ae142bc
Author: Andrzej Hunt <andrzej at ahunt.org>
Date: Sun May 31 16:14:10 2015 +0100
Allow unsetting underline attribute
Change-Id: Ib11f6e76a52c0b8c943d46b9f14b3b00642879d1
Reviewed-on: https://gerrit.libreoffice.org/16004
Tested-by: Jenkins <ci at libreoffice.org>
Tested-by: David Tardon <dtardon at redhat.com>
Reviewed-by: David Tardon <dtardon at redhat.com>
diff --git a/vcl/source/window/window2.cxx b/vcl/source/window/window2.cxx
index fc3b1ff..be4409c 100644
--- a/vcl/source/window/window2.cxx
+++ b/vcl/source/window/window2.cxx
@@ -1558,10 +1558,10 @@ bool Window::set_font_attribute(const OString &rKey, const OString &rValue)
aFont.SetItalic(ITALIC_NORMAL);
SetControlFont(aFont);
}
- else if (rKey == "underline" && toBool(rValue))
+ else if (rKey == "underline")
{
vcl::Font aFont(GetControlFont());
- aFont.SetUnderline(UNDERLINE_SINGLE);
+ aFont.SetUnderline(toBool(rValue) ? UNDERLINE_SINGLE : UNDERLINE_NONE);
SetControlFont(aFont);
}
else if (rKey == "size")
More information about the Libreoffice-commits
mailing list