From f2106dcc3c8f1afe349f325850b9fae85850b0b1 Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Mon, 4 Dec 2017 09:23:47 -0800 Subject: [PATCH] Avoid overriding text control color in generic wxSearchCtrl Although it's the same color the control already had, overriding it can have unexpected consequences, such as overriding the text selection colors with GTK3. Fixes invisible wxSearchCtrl selection with GTK3. --- src/generic/srchctlg.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/generic/srchctlg.cpp b/src/generic/srchctlg.cpp index 7f35ff68b8..9264d8def9 100644 --- a/src/generic/srchctlg.cpp +++ b/src/generic/srchctlg.cpp @@ -332,6 +332,7 @@ bool wxSearchCtrl::Create(wxWindow *parent, wxWindowID id, m_cancelBitmap); SetBackgroundColour( m_text->GetBackgroundColour() ); + m_text->SetBackgroundColour(wxColour()); RecalcBitmaps();