Fix another broken tree book selection in paged dialogs.

This commit is contained in:
Wayne Stambaugh 2021-12-28 16:57:42 -05:00
parent 40589d2c33
commit b5960fef38
1 changed files with 1 additions and 1 deletions

View File

@ -309,7 +309,7 @@ void PAGED_DIALOG::OnPageChanged( wxBookCtrlEvent& event )
int page = event.GetSelection();
// Use the first sub-page when a tree level node is selected.
if( m_treebook->GetPageParent( page ) == wxNOT_FOUND )
if( m_treebook->GetCurrentPage()->GetChildren().IsEmpty() )
{
unsigned next = page + 1;