From: Václav Slavík Date: Wed, 20 Oct 1999 08:49:53 +0000 (+0000) Subject: wxHtmlEasyPrinting now uses wxThePrintSetupData - creates local copy X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/280132e34eed4d6be04f1b961bb6c9e844c97f35 wxHtmlEasyPrinting now uses wxThePrintSetupData - creates local copy git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4077 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/html/htmprint.cpp b/src/html/htmprint.cpp index 3131e908b0..4565f6cb85 100644 --- a/src/html/htmprint.cpp +++ b/src/html/htmprint.cpp @@ -405,16 +405,13 @@ wxHtmlEasyPrinting::wxHtmlEasyPrinting(const wxString& name, wxFrame *parent_fra m_Frame = parent_frame; m_Name = name; m_PrintData = new wxPrintData; + (*m_PrintData) = (*wxThePrintSetupData); m_PageSetupData = new wxPageSetupDialogData; m_Headers[0] = m_Headers[1] = m_Footers[0] = m_Footers[1] = wxEmptyString; m_PageSetupData -> EnableMargins(TRUE); m_PageSetupData -> SetMarginTopLeft(wxPoint(25, 25)); m_PageSetupData -> SetMarginBottomRight(wxPoint(25, 25)); - -#if defined(__WXGTK__) || defined(__WXMOTIF__) - m_PrintData -> SetPrinterCommand("lpr"); -#endif }