X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e7aa9bb7c0381c735cecba13abc7cb2b3c077c66..77c8efc8c37da6d6a5e2e8022d21d1cd7d76371d:/src/common/prntbase.cpp diff --git a/src/common/prntbase.cpp b/src/common/prntbase.cpp index c1467b1d83..e71e729e05 100644 --- a/src/common/prntbase.cpp +++ b/src/common/prntbase.cpp @@ -550,7 +550,7 @@ void wxPrintAbortDialog::SetProgress(int currentPage, int totalPages, void wxPrintAbortDialog::OnCancel(wxCommandEvent& WXUNUSED(event)) { - wxCHECK( wxPrinterBase::sm_abortWindow != NULL ); + wxCHECK_RET( wxPrinterBase::sm_abortWindow != NULL, "OnCancel called twice" ); wxPrinterBase::sm_abortIt = true; wxPrinterBase::sm_abortWindow->Destroy();