- //
- // 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_nSelection == -1 )
- nSelNew = 0;
-
- if (nSelNew != wxNOT_FOUND)
- SetSelection(nSelNew);