]> git.saurik.com Git - wxWidgets.git/blobdiff - src/osx/printdlg_osx.cpp
fixing build
[wxWidgets.git] / src / osx / printdlg_osx.cpp
index 00e7bc39545475adeee06dd5048cea1649acf01f..5d8e99c15e765024d62d195596f0a39677e8d606 100644 (file)
@@ -4,7 +4,7 @@
 // Author:      Stefan Csomor
 // Modified by:
 // Created:     1998-01-01
-// RCS-ID:      $Id: printdlg.cpp 58164 2009-01-17 08:46:00Z SC $
+// RCS-ID:      $Id$
 // Copyright:   (c) Stefan Csomor
 // Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
@@ -67,10 +67,9 @@ bool wxMacPrintDialog::Create( wxWindow *p, wxPrintDialogData *data )
 
 wxMacPrintDialog::~wxMacPrintDialog()
 {
-    if (m_destroyDC && m_printerDC)
+    if (m_destroyDC)
     {
-        delete m_printerDC;
-        m_printerDC = NULL;
+        wxDELETE(m_printerDC);
     }
 }
 
@@ -149,7 +148,7 @@ bool wxMacPageMarginsDialog::TransferToWindow()
   m_LeftMargin->SetFocus();
   return true;
   }
-  
+
 bool wxMacPageMarginsDialog::TransferDataFromWindow()
   {
   wxPoint topLeft, bottomRight;
@@ -161,7 +160,7 @@ bool wxMacPageMarginsDialog::TransferDataFromWindow()
   m_pageSetupDialogData->SetMarginBottomRight(bottomRight);
   return true;
   }
-  
+
 bool wxMacPageMarginsDialog::CheckValue(wxTextCtrl* textCtrl, int *value, int minValue, const wxString& name)
   {
   long lvalue;