summaryrefslogtreecommitdiff
path: root/vcl/source/treelist
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-09-11 12:19:18 +0100
committerCaolán McNamara <caolanm@redhat.com>2020-09-11 15:19:56 +0200
commit099bd18dea7efadbe25a8519d98d24cb69c35b95 (patch)
tree1400ce026c6c226f5fa7fcaa33e081bdc1af191a /vcl/source/treelist
parent6a12fa6a77e407bf2d1e8be47f915ade8e1eab28 (diff)
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@redhat.com>
Diffstat (limited to 'vcl/source/treelist')
-rw-r--r--vcl/source/treelist/treelistbox.cxx1
1 files changed, 0 insertions, 1 deletions
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();