]> git.saurik.com Git - wxWidgets.git/blobdiff - src/html/htmprint.cpp
added QS_ALLPOSTMESSAGE
[wxWidgets.git] / src / html / htmprint.cpp
index 5fe427ea148f26fa6784c445b0d1b4d3b53939c1..fac5d336351d230fc4a42e66939138cccbd3b4da 100644 (file)
@@ -10,7 +10,7 @@
 
 
 #ifdef __GNUG__
-#pragma implementation
+#pragma implementation "htmprint.h"
 #endif
 
 // For compilers that support precompilation, includes "wx/wx.h".
@@ -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);