X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d9fda37ba1e29443ed473d3c69e71480935e09b7..952f4277280975bada5ab5019728449d41a80a1b:/src/msw/settings.cpp diff --git a/src/msw/settings.cpp b/src/msw/settings.cpp index 476873b4af..591b4f7c63 100644 --- a/src/msw/settings.cpp +++ b/src/msw/settings.cpp @@ -127,7 +127,12 @@ wxColour wxSystemSettingsNative::GetColour(wxSystemColour index) 0, // MENUBAR (unused) }; - if ( index == wxSYS_COLOUR_LISTBOX ) + if ( index == wxSYS_COLOUR_LISTBOXTEXT) + { + // there is no standard colour with this index, map to another one + index = wxSYS_COLOUR_WINDOWTEXT; + } + else if ( index == wxSYS_COLOUR_LISTBOX ) { // there is no standard colour with this index, map to another one index = wxSYS_COLOUR_WINDOW;