]> git.saurik.com Git - wxWidgets.git/blobdiff - src/stubs/print.cpp
fixed an over-optimisation
[wxWidgets.git] / src / stubs / print.cpp
index 1939136855356fff1b8158d060f84cc1bd47d522..61fd6e7e993835abbbd6d9bd7d9c27a7c9ca03c5 100644 (file)
@@ -42,13 +42,13 @@ bool wxPrinter::Print(wxWindow *parent, wxPrintout *printout, bool prompt)
 
 bool wxPrinter::PrintDialog(wxWindow *parent)
 {
 
 bool wxPrinter::PrintDialog(wxWindow *parent)
 {
-    wxPrintDialog dialog(parent, & printData);
+    wxPrintDialog dialog(parent, & m_printData);
     return (dialog.ShowModal() == wxID_OK);
 }
 
 bool wxPrinter::Setup(wxWindow *parent)
 {
     return (dialog.ShowModal() == wxID_OK);
 }
 
 bool wxPrinter::Setup(wxWindow *parent)
 {
-    wxPrintDialog dialog(parent, & printData);
+    wxPrintDialog dialog(parent, & m_printData);
     dialog.GetPrintData().SetSetupDialog(TRUE);
     return (dialog.ShowModal() == wxID_OK);
 }
     dialog.GetPrintData().SetSetupDialog(TRUE);
     return (dialog.ShowModal() == wxID_OK);
 }
@@ -69,10 +69,10 @@ wxPrintPreview::~wxPrintPreview()
 
 bool wxPrintPreview::Print(bool interactive)
 {
 
 bool wxPrintPreview::Print(bool interactive)
 {
-    if (!printPrintout)
+    if (!m_printPrintout)
         return FALSE;
         return FALSE;
-    wxPrinter printer(&printData);
-    return printer.Print(previewFrame, printPrintout, interactive);
+    wxPrinter printer(&m_printData);
+    return printer.Print(m_previewFrame, m_printPrintout, interactive);
 }
 
 void wxPrintPreview::DetermineScaling()
 }
 
 void wxPrintPreview::DetermineScaling()