X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6aa55ce7277b3b5bd6da84a741d0270367678ab0..b59ff3c9c8d59c2c4e0291b964d349c9df839894:/src/common/cmndata.cpp?ds=sidebyside diff --git a/src/common/cmndata.cpp b/src/common/cmndata.cpp index fdb6f88075..872e8e4b6e 100644 --- a/src/common/cmndata.cpp +++ b/src/common/cmndata.cpp @@ -198,6 +198,10 @@ wxPrintData::wxPrintData() wxPrintData::wxPrintData(const wxPrintData& printData) { +#ifdef __WXMSW__ + m_devMode = NULL; +#endif + (*this) = printData; } @@ -210,7 +214,7 @@ wxPrintData::~wxPrintData() #endif } -#ifdef __WXMSW__ +#if defined(__WXMSW__) && defined(__WIN32__) static wxString wxGetPrintDlgError() { @@ -282,7 +286,8 @@ void wxPrintData::ConvertToNative() GlobalFree(pd->hDevNames); pd->hDevMode = NULL; pd->hDevNames = NULL; -#ifdef __WXDEBUG__ + +#if defined(__WXDEBUG__) && defined(__WIN32__) wxString str("Printing error: "); str += wxGetPrintDlgError(); wxLogDebug(str);