]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/dcprint.cpp
fixed broken wxCtime() implementation (wrong buffer size count, wrong conversion)
[wxWidgets.git] / src / msw / dcprint.cpp
index 4de8e69a93c7253dc808f58ef61f5f674823c887..bbfd69e35880025e06e989ff08d2345f8797dffb 100644 (file)
 
 #include "wx/dcprint.h"
 #include "wx/printdlg.h"
-#include "math.h"
-
-#if wxUSE_COMMON_DIALOGS
-    #include <commdlg.h>
-#endif
+#include "wx/msw/printdlg.h"
+#include "wx/math.h"
 
+#include "wx/msw/wrapcdlg.h"
 #ifndef __WIN32__
     #include <print.h>
 #endif
@@ -181,7 +179,7 @@ bool wxPrinterDC::StartDoc(const wxString& message)
 
     wxString filename(m_printData.GetFilename());
 
-    if (filename.IsEmpty())
+    if (filename.empty())
         docinfo.lpszOutput = NULL;
     else
         docinfo.lpszOutput = (const wxChar *) filename;