X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b713f8919c649822292f04bb7095291585d96550..238a604422eed8dae5d9263f6fe71731813371b1:/src/msw/dcprint.cpp?ds=sidebyside diff --git a/src/msw/dcprint.cpp b/src/msw/dcprint.cpp index 8636a4447c..5c90a1f9e5 100644 --- a/src/msw/dcprint.cpp +++ b/src/msw/dcprint.cpp @@ -48,10 +48,7 @@ #include "wx/msw/printdlg.h" #include "wx/math.h" -#if wxUSE_COMMON_DIALOGS - #include -#endif - +#include "wx/msw/wrapcdlg.h" #ifndef __WIN32__ #include #endif @@ -278,7 +275,7 @@ static bool wxGetDefaultDeviceName(wxString& deviceName, wxString& portName) GlobalFree(pd.hDevMode); pd.hDevMode=NULL; } - return ( deviceName != wxEmptyString ); + return ( !deviceName.empty() ); } // Gets an HDC for the specified printer configuration