- wxCHECK_MSG( page, false, _T("NULL page in wxBookCtrl::InsertPage()") );
- wxCHECK_MSG( nPage < m_pages.size(), false,
- _T("invalid page index in wxBookCtrl::InsertPage()") );
+ wxCHECK_MSG( page, false, _T("NULL page in wxBookCtrlBase::InsertPage()") );
+ wxCHECK_MSG( nPage <= m_pages.size(), false,
+ _T("invalid page index in wxBookCtrlBase::InsertPage()") );