]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/appbase.cpp
override SetInitialBestSize() to do nothing (we must add our strings first)
[wxWidgets.git] / src / common / appbase.cpp
index 2917c634c1060ff2b873d6214c96f9bfdb6eb7d9..d479bef6e1dbd0efef91195c7815efba152c4e92 100644 (file)
@@ -284,6 +284,10 @@ int wxAppConsole::FilterEvent(wxEvent& WXUNUSED(event))
     return -1;
 }
 
+// ----------------------------------------------------------------------------
+// exception handling
+// ----------------------------------------------------------------------------
+
 #if wxUSE_EXCEPTIONS
 
 void
@@ -295,6 +299,17 @@ wxAppConsole::HandleEvent(wxEvtHandler *handler,
     (handler->*func)(event);
 }
 
+bool
+wxAppConsole::OnExceptionInMainLoop()
+{
+    throw;
+
+    // some compilers are too stupid to know that we never return after throw
+#if defined(__DMC__) || (defined(_MSC_VER) && _MSC_VER < 1200)
+    return false;
+#endif
+}
+
 #endif // wxUSE_EXCEPTIONS
 
 // ----------------------------------------------------------------------------