]> git.saurik.com Git - wxWidgets.git/blobdiff - src/html/htmprint.cpp
build fixes for 64-bit
[wxWidgets.git] / src / html / htmprint.cpp
index ae29a673905c399b2ffaa559e35165ecc59101bd..cacbefbc60939d9025ffdb3cb90efe7c11d2e87c 100644 (file)
@@ -251,7 +251,7 @@ bool wxHtmlPrintout::OnBeginDocument(int startPage, int endPage)
 bool wxHtmlPrintout::OnPrintPage(int page)
 {
     wxDC *dc = GetDC();
-    if (dc)
+    if (dc && dc->IsOk())
     {
         if (HasPage(page))
             RenderPage(dc, page);