X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/681be2ef80274e6c39b243922a594c59e4983dab..7612febb93cca7fd8f89137906b7ed9eae381f6c:/src/os2/notebook.cpp?ds=sidebyside diff --git a/src/os2/notebook.cpp b/src/os2/notebook.cpp index fb45fe10a3..f0a88c0c6a 100644 --- a/src/os2/notebook.cpp +++ b/src/os2/notebook.cpp @@ -648,19 +648,7 @@ bool wxNotebook::InsertPage ( size_t nPage, pPage->Show(false); } - // - // Some page should be selected: either this one or the first one if there is - // still no selection - // - int nSelNew = wxNOT_FOUND; - - if (bSelect) - nSelNew = nPage; - else if ( m_selection == wxNOT_FOUND ) - nSelNew = 0; - - if (nSelNew != wxNOT_FOUND) - SetSelection(nSelNew); + DoSetSelectionAfterInsertion(nPage, bSelect); InvalidateBestSize();