]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/printing/printing.cpp
compilation fix for previous commit
[wxWidgets.git] / samples / printing / printing.cpp
index 9701b90f631bb78ca476edfaa02ff6180988eeb8..d7cdd0858564be66ab7fdb4847881a381d467361 100644 (file)
@@ -77,6 +77,9 @@ bool WritePageHeader(wxPrintout *printout, wxDC *dc, const wxChar *text, float m
 
 bool MyApp::OnInit(void)
 {
+    if ( !wxApp::OnInit() )
+        return false;
+
     wxInitAllImageHandlers();
 
     m_testFont.Create(10, wxSWISS, wxNORMAL, wxNORMAL);