[Libreoffice-commits] core.git: vcl/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Fri Aug 24 11:38:36 UTC 2018
vcl/source/control/imp_listbox.cxx | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
New commits:
commit 7a14326fea2cc317b8be57d45be7ca57aebd8bdd
Author: Jan-Marek Glogowski <glogow at fbihome.de>
AuthorDate: Fri Aug 24 11:42:02 2018 +0200
Commit: Jan-Marek Glogowski <glogow at fbihome.de>
CommitDate: Fri Aug 24 13:38:05 2018 +0200
Just set highlight color for focus rect list box
Hopefully fixes the regression from commit 9897fd1c4715 ("Fix
list box focused text color"), so it won't re-introduce
tdf#109353.
Change-Id: I7107deb33b959a250da9051b527099d723914223
Reviewed-on: https://gerrit.libreoffice.org/59549
Tested-by: Jenkins
Reviewed-by: Jan-Marek Glogowski <glogow at fbihome.de>
diff --git a/vcl/source/control/imp_listbox.cxx b/vcl/source/control/imp_listbox.cxx
index 67d40ca6267d..0655b74c6d8e 100644
--- a/vcl/source/control/imp_listbox.cxx
+++ b/vcl/source/control/imp_listbox.cxx
@@ -2684,13 +2684,16 @@ void ImplWin::ImplDraw(vcl::RenderContext& rRenderContext, bool bLayout)
if (bHasFocus && !ImplGetSVData()->maNWFData.mbDDListBoxNoTextArea)
{
if ( !ImplGetSVData()->maNWFData.mbNoFocusRects )
+ {
rRenderContext.SetFillColor( rStyleSettings.GetHighlightColor() );
+ rRenderContext.SetTextColor( rStyleSettings.GetHighlightTextColor() );
+ }
else
{
rRenderContext.SetLineColor();
rRenderContext.SetFillColor();
+ rRenderContext.SetTextColor( rStyleSettings.GetFieldTextColor() );
}
- rRenderContext.SetTextColor( rStyleSettings.GetHighlightTextColor() );
rRenderContext.DrawRect( maFocusRect );
}
else
More information about the Libreoffice-commits
mailing list