]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/printing/printing.cpp
Map illegal UTF-8 sequences to a range in Unicode's private use area as
[wxWidgets.git] / samples / printing / printing.cpp
index bfe2f16192f4f2713a69dc1cba2f7d79d763e481..d7cdd0858564be66ab7fdb4847881a381d467361 100644 (file)
@@ -77,14 +77,17 @@ 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);
 
     g_printData = new wxPrintData;
-    // Set an initial paper size
+    // You could set an initial paper size here
 //    g_printData->SetPaperId(wxPAPER_LETTER); // for Americans
-    g_printData->SetPaperId(wxPAPER_A4);    // for everyone else    
+//    g_printData->SetPaperId(wxPAPER_A4);    // for everyone else    
 
     g_pageSetupData = new wxPageSetupDialogData;
     // copy over initial paper size from print record