X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/781609f2909df4ff30eecfadc2f24e88d02aed61..f1f5f16f780bb41aa2ea24ccbf728f14c86cc475:/src/common/cmndata.cpp diff --git a/src/common/cmndata.cpp b/src/common/cmndata.cpp index 2ab2f2a670..0c9a9711be 100644 --- a/src/common/cmndata.cpp +++ b/src/common/cmndata.cpp @@ -153,6 +153,7 @@ wxPrintData::wxPrintData() m_media = wxPRINTMEDIA_DEFAULT; m_printMode = wxPRINT_MODE_PRINTER; m_printOrientation = wxPORTRAIT; + m_printOrientationReversed = false; m_printNoCopies = 1; m_printCollate = false; @@ -161,8 +162,11 @@ wxPrintData::wxPrintData() m_colour = true; m_duplexMode = wxDUPLEX_SIMPLEX; m_printQuality = wxPRINT_QUALITY_HIGH; - m_paperId = wxPAPER_A4; - m_paperSize = wxSize(210, 297); + + // we intentionally don't initialize paper id and size at all, like this + // the default system settings will be used for them + m_paperId = wxPAPER_NONE; + m_paperSize = wxDefaultSize; m_privData = NULL; m_privDataLen = 0; @@ -218,6 +222,7 @@ void wxPrintData::operator=(const wxPrintData& data) m_printNoCopies = data.m_printNoCopies; m_printCollate = data.m_printCollate; m_printOrientation = data.m_printOrientation; + m_printOrientationReversed = data.m_printOrientationReversed; m_printerName = data.m_printerName; m_colour = data.m_colour; m_duplexMode = data.m_duplexMode;