From 2ea1d3fc198d7eb504543f55fe362e5214ac45d1 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 14 Jun 2015 14:01:55 +0200 Subject: [PATCH] Correctly deinitialize wxUxThemeEngine in wxMSW. Set ms_isThemeEngineAvailable to -1, meaning that we need to reinitialize themes, instead of false, meaning that themes are not available. This fixes problems when the library is initialized, shut down and then initialized again. Closes #17023. --- src/msw/uxtheme.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/msw/uxtheme.cpp b/src/msw/uxtheme.cpp index ee30955555..18f8a867fa 100644 --- a/src/msw/uxtheme.cpp +++ b/src/msw/uxtheme.cpp @@ -55,7 +55,7 @@ public: // something like this wxUxThemeEngine *themeEngine = wxUxThemeEngine::ms_themeEngine; wxUxThemeEngine::ms_themeEngine = NULL; - wxUxThemeEngine::ms_isThemeEngineAvailable = false; + wxUxThemeEngine::ms_isThemeEngineAvailable = -1; delete themeEngine; }