From 712f40ca5e34c184e82697eb2a8846b1876fe79a Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 21 Aug 2003 13:27:41 +0000 Subject: [PATCH] corrected CHECK in InsertPage() git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23071 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/bookctrl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);