X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4c51a665c649f7579fb39e62070cef4f66b3210d..fc2f6088e7cee8dda9953d346de97fcb26970aeb:/src/common/docview.cpp diff --git a/src/common/docview.cpp b/src/common/docview.cpp index 680ff2bde4..34df0b1c27 100644 --- a/src/common/docview.cpp +++ b/src/common/docview.cpp @@ -1181,7 +1181,7 @@ void wxDocManager::OnPreview(wxCommandEvent& WXUNUSED(event)) preview = new wxPrintPreview(printout, view->OnCreatePrintout(), &printDialogData); - if ( !preview->Ok() ) + if ( !preview->IsOk() ) { delete preview; wxLogError(_("Print preview creation failed."));