]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/dcprint.cpp
suppress annoying beeps when enter is pressed in combobox and there is no default...
[wxWidgets.git] / src / msw / dcprint.cpp
index 4de8e69a93c7253dc808f58ef61f5f674823c887..8636a4447cc6610dd5f94999428a0f41c8568adc 100644 (file)
@@ -45,7 +45,8 @@
 
 #include "wx/dcprint.h"
 #include "wx/printdlg.h"
-#include "math.h"
+#include "wx/msw/printdlg.h"
+#include "wx/math.h"
 
 #if wxUSE_COMMON_DIALOGS
     #include <commdlg.h>
@@ -181,7 +182,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;