X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f415cab9ef1433413a1a68a982ee9b17c5a8deda..39b61aa3eb950489f880fbe2024d3b5bc82a11f5:/samples/printing/printing.cpp diff --git a/samples/printing/printing.cpp b/samples/printing/printing.cpp index bfe2f16192..d7cdd08585 100644 --- a/samples/printing/printing.cpp +++ b/samples/printing/printing.cpp @@ -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