// Author: Julian Smart
// Modified by:
// Created: 04/01/98
-// RCS-ID: $Id$
// Copyright: (c) Julian Smart
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
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();
Connect(wxEVT_KILL_FOCUS,
wxFocusEventHandler(wxPrintPageTextCtrl::OnKillFocus));
- Connect(wxEVT_COMMAND_TEXT_ENTER,
+ Connect(wxEVT_TEXT_ENTER,
wxCommandEventHandler(wxPrintPageTextCtrl::OnTextEnter));
}