From bd73ba41f93a040ecf9c18040d7f788992d0a6ec Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Sun, 7 Oct 2001 14:33:44 +0000 Subject: [PATCH] moved MGL initialization to earlier stage (crashes otherwise...) and implemented wxApp::Initialized git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11872 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/mgl/app.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/mgl/app.cpp b/src/mgl/app.cpp index c5ff7897f0..d9ff129be0 100644 --- a/src/mgl/app.cpp +++ b/src/mgl/app.cpp @@ -144,8 +144,6 @@ wxApp::~wxApp() bool wxApp::OnInitGui() { - if ( MGL_init(".", NULL) == 0 ) - return FALSE; if ( !wxCreateMGL_WM() ) return FALSE; @@ -256,9 +254,7 @@ void wxApp::ExitMainLoop() bool wxApp::Initialized() { - // FIXME_MGL -- only for now because we don't have wxFrame/wxDialog yet - return TRUE; - //return (wxTopLevelWindows.GetCount() != 0); + return (wxTopLevelWindows.GetCount() != 0); } bool wxApp::Pending() @@ -289,6 +285,9 @@ void wxApp::DeletePendingObjects() bool wxApp::Initialize() { + if ( MGL_init(".", NULL) == 0 ) + return FALSE; + wxBuffer = new wxChar[BUFSIZ + 512]; wxClassInfo::InitializeClasses(); -- 2.45.2