X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9899a70bc0b011ad8aa8e7d57e6f01047423222a..2e14066008229145e2da7b9f05a478ce38631f83:/src/html/htmprint.cpp?ds=inline diff --git a/src/html/htmprint.cpp b/src/html/htmprint.cpp index 4ce2e3b80a..9becb22f5b 100644 --- a/src/html/htmprint.cpp +++ b/src/html/htmprint.cpp @@ -695,7 +695,7 @@ bool wxHtmlEasyPrinting::DoPreview(wxHtmlPrintout *printout1, wxHtmlPrintout *pr // Pass two printout objects: for preview, and possible printing. wxPrintDialogData printDialogData(*GetPrintData()); wxPrintPreview *preview = new wxPrintPreview(printout1, printout2, &printDialogData); - if (!preview->Ok()) + if (!preview->IsOk()) { delete preview; return false; @@ -731,7 +731,7 @@ bool wxHtmlEasyPrinting::DoPrint(wxHtmlPrintout *printout) void wxHtmlEasyPrinting::PageSetup() { - if (!GetPrintData()->Ok()) + if (!GetPrintData()->IsOk()) { wxLogError(_("There was a problem during page setup: you may need to set a default printer.")); return;