]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/printps.cpp
remove duplicate deletion
[wxWidgets.git] / src / generic / printps.cpp
index 56f95f30678d649e2d853cc3eadbad747ecdf66e..3317b1df0abc71ae91550e5b5a66c15f430c0a33 100644 (file)
@@ -30,6 +30,8 @@
 
 #include "wx/defs.h"
 
+#if wxUSE_PRINTING_ARCHITECTURE
+
 #ifndef WX_PRECOMP
     #include "wx/utils.h"
     #include "wx/dc.h"
@@ -177,8 +179,7 @@ bool wxPostScriptPrinter::Print(wxWindow *parent, wxPrintout *printout, bool pro
        _("Printing..."),
        totalPages,
        parent,
-       /* disable parent only */ true,
-       /* show abort button */ true);
+       wxPD_CAN_ABORT|wxPD_AUTO_HIDE|wxPD_APP_MODAL);
     
     printout->OnBeginPrinting();
 
@@ -217,10 +218,11 @@ bool wxPostScriptPrinter::Print(wxWindow *parent, wxPrintout *printout, bool pro
                }
                else
                {
-                  sm_abortIt = true;
-                  keepGoing = false;
+                  sm_abortIt = TRUE;
+                  keepGoing = FALSE;
                }
             }
+           wxYield();
         }
         printout->OnEndDocument();
     }
@@ -347,3 +349,4 @@ void wxPostScriptPrintPreview::DetermineScaling()
     }
 }
 
+#endif