From 5efba4ce470148c92b62e903c9d40f9a05702715 Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Wed, 3 Jan 2018 20:22:12 -0800 Subject: [PATCH] Avoid invisible wxTextCtrl selection with GTK+3 See #18036 --- src/gtk/window.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gtk/window.cpp b/src/gtk/window.cpp index 4c7426756b..50973fcf02 100644 --- a/src/gtk/window.cpp +++ b/src/gtk/window.cpp @@ -5439,9 +5439,9 @@ void wxWindowGTK::GTKApplyWidgetStyle(bool forceStyle) } g_string_append_c(css, '}'); - if (isFg && isBg) + if (isFg || isBg) { - // Selection will be invisible, so add textview selection colors. + // Selection may be invisible, so add textview selection colors. // This is specifically for wxTextCtrl, but may be useful for other // controls, and seems to do no harm to apply to all. const wxColour fg_sel(wxSystemSettings::GetColour(wxSYS_COLOUR_HIGHLIGHTTEXT));