X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/34621cc5d6eaf8933935fbda55625124429a0ff9..c447205527920a5c08601d042196173d59924fcb:/samples/richedit/wxllist.cpp diff --git a/samples/richedit/wxllist.cpp b/samples/richedit/wxllist.cpp index 60b6b98434..31e5ba8f5d 100644 --- a/samples/richedit/wxllist.cpp +++ b/samples/richedit/wxllist.cpp @@ -3303,10 +3303,12 @@ void wxLayoutPrintout::GetPageInfo(int *minPage, int *maxPage, int *selPageFrom, /* We allocate a temporary wxDC for printing, so that we can determine the correct paper size and scaling. We don't actually print anything on it. */ -#if defined(__WXMSW__) +#if defined(__WXMSW__) || defined(__WXMAC__) wxPrinterDC *psdc = new wxPrinterDC(wxEmptyString,wxEmptyString,_T(WXLLIST_TEMPFILE),false); #else - wxPostScriptDC *psdc = new wxPostScriptDC(WXLLIST_TEMPFILE,false); + wxPrintData data; + data.SetFilename(WXLLIST_TEMPFILE); + wxPostScriptDC *psdc = new wxPostScriptDC(data); #endif psdc->StartDoc(m_title);