]> git.saurik.com Git - wxWidgets.git/commitdiff
corrected CHECK in InsertPage()
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 21 Aug 2003 13:27:41 +0000 (13:27 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 21 Aug 2003 13:27:41 +0000 (13:27 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23071 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/bookctrl.cpp

index d083152210541092b925073776fe69f103fadbe0..cdd90bf2e04df33f9befc60633a25c1528e4c2b3 100644 (file)
@@ -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);