wxHtmlEasyPrinting now uses wxThePrintSetupData - creates local copy

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4077 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík 1999-10-20 08:49:53 +00:00
parent 2cdac55878
commit 280132e34e

View File

@ -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
}