make it possible to use wxConsoleApp in GUI build
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22403 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -245,7 +245,11 @@ bool wxEntryStart(int& argc, wxChar **argv)
|
||||
if ( fnCreate )
|
||||
{
|
||||
// he did, try to create the custom wxApp object
|
||||
app.Set((*fnCreate)());
|
||||
//
|
||||
// NB: cast is needed because for the backwards-compatibility
|
||||
// reasons wxTheApp is really a wxApp and not just
|
||||
// wxAppConsole...
|
||||
app.Set((wxApp*)(*fnCreate)());
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user