PCB Editor: prevent scroll wheel on track size opening board settings

Fixes: https://gitlab.com/kicad/code/kicad/-/issues/13218
This commit is contained in:
Mike Williams 2023-01-20 12:12:39 -05:00
parent dc791fa955
commit 6586a2ca66
1 changed files with 1 additions and 0 deletions

View File

@ -182,6 +182,7 @@ void PCB_EDIT_FRAME::Tracks_and_Vias_Size_Event( wxCommandEvent& event )
if( ii == int( m_SelTrackWidthBox->GetCount() - 2 ) )
{
// this is the separator
m_SelTrackWidthBox->SetSelection( GetDesignSettings().GetTrackWidthIndex() );
}
else if( ii == int( m_SelTrackWidthBox->GetCount() - 1 ) )
{