Fix wxBitmapComboBox for system color change

Remove an unnecessary SetBackgroundColour() to allow system color
change events to take effect. The default background color is already
correct.

Closes #26721.
This commit is contained in:
Steve Cornett
2026-07-23 23:35:48 +02:00
committed by Vadim Zeitlin
parent fbbeb21d8f
commit 5ec278eb4d
-4
View File
@@ -522,10 +522,6 @@ void wxComboBox::MSWRecreate()
m_backgroundColour = wxNullColour;
SetBackgroundColour(colBg);
}
else
{
SetBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOW));
}
// Revert the old string value
if ( !HasFlag(wxCB_READONLY) )