]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/prntbase.cpp
Use int instead of wxWindowID in wxNewId() and friends.
[wxWidgets.git] / src / common / prntbase.cpp
index c1467b1d837d20e8f4921e355cd81e794bb6186a..fee5f8d239e1e9a6932efc6ea0edd7c8b03d09bb 100644 (file)
@@ -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();
@@ -1112,7 +1112,7 @@ public:
 
         Connect(wxEVT_KILL_FOCUS,
                 wxFocusEventHandler(wxPrintPageTextCtrl::OnKillFocus));
-        Connect(wxEVT_COMMAND_TEXT_ENTER,
+        Connect(wxEVT_TEXT_ENTER,
                 wxCommandEventHandler(wxPrintPageTextCtrl::OnTextEnter));
     }