X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7a34307e2463bca44f128e28b70e1df4f626e8f8..f3769d53f7fdeccc86cef15e622efee9830163fb:/include/wx/event.h diff --git a/include/wx/event.h b/include/wx/event.h index 06cd01f28b..42d24634e4 100644 --- a/include/wx/event.h +++ b/include/wx/event.h @@ -1519,7 +1519,7 @@ enum wxKeyCategoryFlags // home and end keys, on and off numeric keypads WXK_CATEGORY_JUMP = 4, - // tab key + // tab key, on and off numeric keypads WXK_CATEGORY_TAB = 8, // backspace and delete keys, on and off numeric keypads @@ -2760,7 +2760,10 @@ struct WXDLLIMPEXP_BASE wxEventTableEntryBase m_lastId(idLast), m_fn(fn), m_callbackUserData(data) - { } + { + wxASSERT_MSG( idLast == wxID_ANY || winid <= idLast, + "invalid IDs range: lower bound > upper bound" ); + } wxEventTableEntryBase( const wxEventTableEntryBase &entry ) : m_id( entry.m_id ),