From 7b9f73d205e75635fd3cd6c19cce1d8edf91b045 Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Thu, 17 Jan 2002 23:42:37 +0000 Subject: [PATCH] end with fatal error if cannot start MGL git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13622 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/mgl/window.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/mgl/window.cpp b/src/mgl/window.cpp index f749bc1251..170bf9cb43 100644 --- a/src/mgl/window.cpp +++ b/src/mgl/window.cpp @@ -476,7 +476,10 @@ void wxWindowMGL::Init() // First of all, make sure window manager is up and running. If it is // not the case, initialize it in default display mode if ( !g_winMng ) - wxTheApp->SetDisplayMode(wxGetDefaultDisplayMode()); + { + if ( !wxTheApp->SetDisplayMode(wxGetDefaultDisplayMode()) ) + wxFatalError(_("Cannot initialize display.")); + } // generic: InitBase(); -- 2.45.2