X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/eba330067e87ccec9c8af7bd8b1023044e6d39e3..b2ddee86fe73c5ae8edc59871fea9f40e84cbc2d:/src/generic/prntdlgg.cpp?ds=inline diff --git a/src/generic/prntdlgg.cpp b/src/generic/prntdlgg.cpp index 14162e2715..6f4584b82a 100644 --- a/src/generic/prntdlgg.cpp +++ b/src/generic/prntdlgg.cpp @@ -266,7 +266,7 @@ void wxGenericPrintDialog::OnOK(wxCommandEvent& WXUNUSED(event)) wxFileName fname( m_printDialogData.GetPrintData().GetFilename() ); wxFileDialog dialog( this, _("PostScript file"), - fname.GetPath(), fname.GetFullName(), wxT("*.ps"), wxOPEN | wxFILE_MUST_EXIST ); + fname.GetPath(), fname.GetFullName(), wxT("*.ps"), wxOPEN | wxOVERWRITE_PROMPT ); if (dialog.ShowModal() != wxID_OK) return; m_printDialogData.GetPrintData().SetFilename( dialog.GetPath() ); @@ -455,8 +455,6 @@ void wxGenericPrintSetupDialog::Init(wxPrintData* data) okButton->SetDefault(); okButton->SetFocus(); - printf( "Hello generic\n" ); - Fit(); Centre(wxBOTH);