]> git.saurik.com Git - wxWidgets.git/commitdiff
adding fallback
authorStefan Csomor <csomor@advancedconcepts.ch>
Wed, 8 Jun 2011 23:05:23 +0000 (23:05 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Wed, 8 Jun 2011 23:05:23 +0000 (23:05 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67893 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/osx/core/printmac.cpp

index ca31f2186ed206eebd1222155931ef1906063c2c..9b1eded8fe430ecab38cc8ea4d28a8afb7af4d0e 100644 (file)
@@ -651,6 +651,11 @@ bool wxMacPrinter::Print(wxWindow *parent, wxPrintout *printout, bool prompt)
 #endif
         }
     }
 #endif
         }
     }
+    else
+    {
+        // fallback
+        res.hRes = res.vRes = 300;
+    }
     printout->SetPPIPrinter(int(res.hRes), int(res.vRes));
 
     // Set printout parameters
     printout->SetPPIPrinter(int(res.hRes), int(res.vRes));
 
     // Set printout parameters