]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/msgout.cpp
Check for null pointer.
[wxWidgets.git] / src / common / msgout.cpp
index 19f45aa4e3d5f97cb336948181f509e60e07a914..1225ae88d06bb22146c5b1886bdaf2961ca9265d 100755 (executable)
@@ -33,6 +33,7 @@
     #include "wx/ffile.h"
     #include "wx/app.h"
     #include "wx/intl.h"
+    #include "wx/apptrait.h"
     #if wxUSE_GUI
         #include "wx/msgdlg.h"
     #endif // wxUSE_GUI
 #include <stdarg.h>
 #include <stdio.h>
 
+#ifdef __WXMSW__
+    #include "wx/msw/private.h"
+#endif
+
 // ===========================================================================
 // implementation
 // ===========================================================================
@@ -60,7 +65,7 @@ wxMessageOutput* wxMessageOutput::Get()
 {
     if ( !ms_msgOut && wxTheApp )
     {
-        ms_msgOut = wxTheApp->CreateMessageOutput();
+        ms_msgOut = wxTheApp->GetTraits()->CreateMessageOutput();
     }
 
     return ms_msgOut;