X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5009cb6accf219ec5ce6010b9b1ea88bece64e03..0547ad09ccbc8f853502bf496f411c1623a68382:/src/msw/printwin.cpp diff --git a/src/msw/printwin.cpp b/src/msw/printwin.cpp index 26aa924725..5dba0607ba 100644 --- a/src/msw/printwin.cpp +++ b/src/msw/printwin.cpp @@ -90,8 +90,6 @@ bool wxWindowsPrinter::Print(wxWindow *parent, wxPrintout *printout, bool prompt return false; } - printout->SetIsPreview(false); - if (m_printDialogData.GetMinPage() < 1) m_printDialogData.SetMinPage(1); if (m_printDialogData.GetMaxPage() < 1) @@ -245,8 +243,7 @@ bool wxWindowsPrinter::Print(wxWindow *parent, wxPrintout *printout, bool prompt if (sm_abortWindow) { sm_abortWindow->Show(false); - delete sm_abortWindow; - sm_abortWindow = NULL; + wxDELETE(sm_abortWindow); } delete dc;