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
This commit is contained in:
Vadim Zeitlin
2014-09-23 17:39:34 +00:00
parent 196227619d
commit 32b4a42cd1

View File

@@ -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