]> git.saurik.com Git - wxWidgets.git/blobdiff - src/html/htmprint.cpp
minus one show stopper typo and a couple of warnings on mingw.
[wxWidgets.git] / src / html / htmprint.cpp
index 801403e017a3b8e5f463c4fe68a063e73593d300..fac5d336351d230fc4a42e66939138cccbd3b4da 100644 (file)
@@ -543,6 +543,12 @@ void wxHtmlEasyPrinting::PrinterSetup()
 
 void wxHtmlEasyPrinting::PageSetup()
 {
+    if (!m_PrintData->Ok())
+    {
+        wxLogError(_("There was a problem during page setup: you may need to set a default printer."));
+        return;
+    }
+
     m_PageSetupData->SetPrintData(*m_PrintData);
     wxPageSetupDialog pageSetupDialog(m_Frame, m_PageSetupData);