Fix assertion failure in bus alias dialog.

This commit is contained in:
Jeff Young 2023-10-06 21:41:16 +01:00
parent 3f0067cbaa
commit b161105fce
1 changed files with 2 additions and 2 deletions

View File

@ -197,7 +197,7 @@ void PANEL_SETUP_BUSES::OnDeleteAlias( wxCommandEvent& aEvent )
if( m_aliasesGrid->GetNumberRows() > 0 )
{
m_aliasesGrid->MakeCellVisible( std::max( 0, curRow-1 ), 0 );
m_aliasesGrid->SelectRow( curRow-1 );
m_aliasesGrid->SelectRow( std::max( 0, curRow-1 ) );
}
}
@ -240,7 +240,7 @@ void PANEL_SETUP_BUSES::OnRemoveMember( wxCommandEvent& aEvent )
if( m_membersGrid->GetNumberRows() > 0 )
{
m_membersGrid->MakeCellVisible( std::max( 0, curRow-1 ), 0 );
m_membersGrid->SelectRow( curRow-1 );
m_membersGrid->SelectRow( std::max( 0, curRow-1 ) );
}
}