X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/51abe921b849be69f02c174365c9a7bc8b46bd08..270a909e20a2c652fd816ad14407113ad0319c9d:/src/common/cmndata.cpp diff --git a/src/common/cmndata.cpp b/src/common/cmndata.cpp index d6d38e477c..045ff85556 100644 --- a/src/common/cmndata.cpp +++ b/src/common/cmndata.cpp @@ -203,8 +203,9 @@ wxPrintData::wxPrintData(const wxPrintData& printData) { #ifdef __WXMSW__ m_devMode = NULL; +#elif defined( __WXMAC__ ) + m_macPrintInfo = NULL ; #endif - (*this) = printData; } @@ -692,6 +693,8 @@ wxPrintDialogData::wxPrintDialogData() { #ifdef __WXMSW__ m_printDlgData = NULL; +#elif defined( __WXMAC__ ) + m_macPrintInfo = NULL ; #endif m_printFromPage = 0; m_printToPage = 0; @@ -711,6 +714,11 @@ wxPrintDialogData::wxPrintDialogData() wxPrintDialogData::wxPrintDialogData(const wxPrintDialogData& dialogData) { +#ifdef __WXMSW__ + m_printDlgData = NULL; +#elif defined( __WXMAC__ ) + m_macPrintInfo = NULL ; +#endif (*this) = dialogData; } @@ -994,6 +1002,11 @@ wxPageSetupDialogData::wxPageSetupDialogData() wxPageSetupDialogData::wxPageSetupDialogData(const wxPageSetupDialogData& dialogData) { +#if defined(__WIN95__) + m_pageSetupData = NULL; +#elif defined( __WXMAC__ ) + m_macPageSetupInfo = NULL ; +#endif (*this) = dialogData; } @@ -1210,7 +1223,7 @@ void wxPageSetupDialogData::SetOwnerWindow(wxWindow* win) #endif // Win95 #ifdef __WXMAC__ -void wxPageSetupData::ConvertToNative() +void wxPageSetupDialogData::ConvertToNative() { if ( !m_macPageSetupInfo ) { @@ -1239,7 +1252,7 @@ void wxPageSetupData::ConvertToNative() } } -void wxPageSetupData::ConvertFromNative() +void wxPageSetupDialogData::ConvertFromNative() { if ( m_macPageSetupInfo ) {