[Libreoffice-commits] core.git: vcl/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Fri Sep 11 13:20:37 UTC 2020
vcl/source/treelist/treelistbox.cxx | 1 -
1 file changed, 1 deletion(-)
New commits:
commit 099bd18dea7efadbe25a8519d98d24cb69c35b95
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Fri Sep 11 12:19:18 2020 +0100
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Fri Sep 11 15:19:56 2020 +0200
drop misleading GetWindowTextColor use
We use a font from StyleSettings::GetFieldFont(),
but use a font color from StyleSettings::GetWindowTextColor()
and then immediately afterwards use
SetTextColor(StyleSettings::GetFieldTextColor());
Change-Id: I60f653947242a4e2d5fe48bd1d0df7a3ab693685
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/102461
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/vcl/source/treelist/treelistbox.cxx b/vcl/source/treelist/treelistbox.cxx
index b59a4b0a9131..7ee2a50b33a7 100644
--- a/vcl/source/treelist/treelistbox.cxx
+++ b/vcl/source/treelist/treelistbox.cxx
@@ -3390,7 +3390,6 @@ void SvTreeListBox::InitSettings()
{
const StyleSettings& rStyleSettings = GetSettings().GetStyleSettings();
vcl::Font aFont = rStyleSettings.GetFieldFont();
- aFont.SetColor(rStyleSettings.GetWindowTextColor());
SetPointFont(*this, aFont);
AdjustEntryHeightAndRecalc();
More information about the Libreoffice-commits
mailing list