]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/printdlg.cpp
added test for wxScopeGuard
[wxWidgets.git] / src / msw / printdlg.cpp
index 378044bb5e681182fc5cc2ae39e2a9b4ad0115bc..2818820a0ae822a43cc7fdadaba49af40f46d447 100644 (file)
@@ -603,7 +603,7 @@ int wxWindowsPrintDialog::ShowModal()
 
     pd->hwndOwner = 0;
 
-    if ( ret != false && (pd->hDC) )
+    if ( ret && (pd->hDC) )
     {
         wxPrinterDC *pdc = new wxPrinterDC( (WXHDC) pd->hDC );
         m_printerDC = pdc;