1. wxLoad/SaveFileSelector return "wxString" instead of "char *"
2. WXDLLEXPORT was misplaced in a couple of places (hopefully my chanegs won't break compilation for other compilers) 3. Some VC++ warnings suppressed in socket code git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1464 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -156,14 +156,14 @@ void wxGenericPrintDialog::OnOK(wxCommandEvent& WXUNUSED(event))
|
||||
{
|
||||
wxThePrintSetupData->SetPrinterMode(PS_FILE);
|
||||
|
||||
char *f = wxFileSelector(_("PostScript file"),
|
||||
wxPathOnly(wxThePrintSetupData->GetPrinterFile()),
|
||||
wxFileNameFromPath(wxThePrintSetupData->GetPrinterFile()),
|
||||
"ps", "*.ps", 0, this);
|
||||
if (f)
|
||||
wxThePrintSetupData->SetPrinterFile(f);
|
||||
else
|
||||
return;
|
||||
wxString f = wxFileSelector(_("PostScript file"),
|
||||
wxPathOnly(wxThePrintSetupData->GetPrinterFile()),
|
||||
wxFileNameFromPath(wxThePrintSetupData->GetPrinterFile()),
|
||||
"ps", "*.ps", 0, this);
|
||||
if ( f.IsEmpty() )
|
||||
return;
|
||||
|
||||
wxThePrintSetupData->SetPrinterFile(f);
|
||||
}
|
||||
else
|
||||
wxThePrintSetupData->SetPrinterMode(PS_PRINTER);
|
||||
@@ -425,7 +425,7 @@ void wxGenericPageSetupDialog::OnPrinter(wxCommandEvent& WXUNUSED(event))
|
||||
wxPrintData data;
|
||||
data.SetSetupDialog(TRUE);
|
||||
wxPrintDialog *printDialog = new wxPrintDialog(this, & data);
|
||||
int ret = printDialog->ShowModal();
|
||||
printDialog->ShowModal();
|
||||
|
||||
printDialog->Destroy();
|
||||
|
||||
|
Reference in New Issue
Block a user