Fixed wxPostScript printing problem (used wrong constructor, and the right
one was wrong anyway...) Fixed include dir ordering in wxMotif makefiles (wrong version of zlib.h picked up) and added wxchar.cpp to Motif makefile. Changed buffer.h since there's no wchar.h on my system. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2243 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -242,7 +242,10 @@ void wxGenericPrintDialog::OnOK(wxCommandEvent& WXUNUSED(event))
|
||||
wxThePrintSetupData->SetPrinterFile(f);
|
||||
}
|
||||
else
|
||||
{
|
||||
m_printDialogData.GetPrintData().SetPrintMode(wxPRINT_MODE_PRINTER);
|
||||
wxThePrintSetupData->SetPrinterMode(wxPRINT_MODE_PRINTER);
|
||||
}
|
||||
|
||||
EndModal(wxID_OK);
|
||||
}
|
||||
@@ -354,7 +357,8 @@ TODO: collate and noCopies should be duplicated across dialog data and print dat
|
||||
|
||||
wxDC *wxGenericPrintDialog::GetPrintDC()
|
||||
{
|
||||
return new wxPostScriptDC(wxThePrintSetupData->GetPrinterFile(), FALSE, (wxWindow *) NULL);
|
||||
// return new wxPostScriptDC(wxThePrintSetupData->GetPrinterFile(), FALSE, (wxWindow *) NULL);
|
||||
return new wxPostScriptDC(GetPrintDialogData().GetPrintData());
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user