From: Vadim Zeitlin Date: Thu, 21 Aug 2003 13:27:41 +0000 (+0000) Subject: corrected CHECK in InsertPage() X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/712f40ca5e34c184e82697eb2a8846b1876fe79a corrected CHECK in InsertPage() git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23071 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/bookctrl.cpp b/src/common/bookctrl.cpp index d083152210..cdd90bf2e0 100644 --- a/src/common/bookctrl.cpp +++ b/src/common/bookctrl.cpp @@ -145,7 +145,7 @@ wxBookCtrl::InsertPage(size_t nPage, int imageId) { wxCHECK_MSG( page, false, _T("NULL page in wxBookCtrl::InsertPage()") ); - wxCHECK_MSG( nPage < m_pages.size(), false, + wxCHECK_MSG( nPage <= m_pages.size(), false, _T("invalid page index in wxBookCtrl::InsertPage()") ); m_pages.Insert(page, nPage);