]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/dcprint.cpp
Filter index wasn't being set for multiple file dialog
[wxWidgets.git] / src / msw / dcprint.cpp
index f277ca44b823766f5ac602c851e4ef6613bc30cc..53542de5ea305ad0c257f2203b31f4ecaab0601c 100644 (file)
@@ -309,15 +309,10 @@ WXHDC WXDLLEXPORT wxGetPrinterDC(const wxPrintData& printDataConst)
     {
         // Retrieve the default device name
         wxString portName;
-#ifdef  __WXDEBUG__
-        bool ret =
-#else   // !Debug
-        (void)
-#endif // Debug/Release
-        wxGetDefaultDeviceName(devNameStr, portName);
-
-        wxASSERT_MSG( ret, wxT("Could not get default device name.") );
-
+        if ( !wxGetDefaultDeviceName(devNameStr, portName) )
+        {
+            return 0; // Could not get default device name
+        }
         deviceName = devNameStr.c_str();
     }