use given position for page insertion instead of trying to find the page to insert before (bug 1287730)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35467 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2005-09-11 11:55:48 +00:00
parent 4f7ee81a08
commit 1c36a9d335
2 changed files with 2 additions and 2 deletions

View File

@ -654,7 +654,7 @@ bool wxNotebook::InsertPage( size_t position,
if ( position == GetPageCount() )
m_pagesData.Append( nb_page );
else
m_pagesData.Insert( m_pagesData.Item( position ), nb_page );
m_pagesData.Insert( position, nb_page );
m_pages.Insert(win, position);

View File

@ -654,7 +654,7 @@ bool wxNotebook::InsertPage( size_t position,
if ( position == GetPageCount() )
m_pagesData.Append( nb_page );
else
m_pagesData.Insert( m_pagesData.Item( position ), nb_page );
m_pagesData.Insert( position, nb_page );
m_pages.Insert(win, position);