From 32b4a42cd1670db18806fb4e7d93f98d40aa5063 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 23 Sep 2014 17:39:34 +0000 Subject: [PATCH] Fix `Error: Failed to initialize GUI: no built-in themes found` when run gui and load theme, by add WX_USE_THEME in the place that create them object git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77773 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/univ/theme.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/univ/theme.cpp b/src/univ/theme.cpp index c47cc8010b..cf9cb76380 100644 --- a/src/univ/theme.cpp +++ b/src/univ/theme.cpp @@ -95,6 +95,7 @@ wxThemeInfo::wxThemeInfo(Constructor c, #ifdef wxUNIV_DEFAULT_THEME else // use native theme by default { + WX_USE_THEME(wxUNIV_DEFAULT_THEME); nameDefTheme = wxSTRINGIZE_T(wxUNIV_DEFAULT_THEME); } #endif // wxUNIV_DEFAULT_THEME