]> git.saurik.com Git - wxWidgets.git/blobdiff - src/osx/core/printmac.cpp
wxMac crashes in wxLog() statements with string.GetData()
[wxWidgets.git] / src / osx / core / printmac.cpp
index d7aae24967aec36bcd4f267938c51854a12d1844..825c8326d78eb4226fe5e7486aa8ea5f933d7308 100644 (file)
@@ -27,7 +27,7 @@
     #include "wx/math.h"
 #endif
 
-#include "wx/osx/uma.h"
+#include "wx/osx/private.h"
 
 #include "wx/osx/printmac.h"
 #include "wx/osx/private/print.h"
@@ -411,8 +411,7 @@ bool wxMacPrinter::Print(wxWindow *parent, wxPrintout *printout, bool prompt)
     // May have pressed cancel.
     if (!dc || !dc->IsOk())
     {
-        if (dc)
-            delete dc;
+        delete dc;
         return false;
     }