]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/printing/printing.cpp
correcting text alignment flag
[wxWidgets.git] / samples / printing / printing.cpp
index 14f6545912ea57416b745159509e53335aba8d94..ace34b5d7f1c35b80d6e24da3e3bb4fcb45ce63c 100644 (file)
@@ -51,7 +51,7 @@
 
 #include "printing.h"
 
-#if !defined(__WXMSW__) && !defined(__WXPM__)
+#ifndef wxHAS_IMAGES_IN_RESOURCES
     #include "../sample.xpm"
 #endif
 
@@ -410,7 +410,7 @@ void MyFrame::OnPrintPreview(wxCommandEvent& WXUNUSED(event))
     wxPreviewFrame *frame =
         new wxPreviewFrame(preview, this, wxT("Demo Print Preview"), wxPoint(100, 100), wxSize(600, 650));
     frame->Centre(wxBOTH);
-    frame->Initialize(m_previewModality);
+    frame->InitializeWithModality(m_previewModality);
     frame->Show();
 }