Fix inital predefined track width selection in track properties dialog

Fixes https://gitlab.com/kicad/code/kicad/-/issues/8578
This commit is contained in:
david-beinder 2021-06-09 11:28:22 +02:00 committed by Jeff Young
parent 9411d301a0
commit 410dbe17de
1 changed files with 1 additions and 1 deletions

View File

@ -308,7 +308,7 @@ DIALOG_TRACK_VIA_PROPERTIES::DIALOG_TRACK_VIA_PROPERTIES( PCB_BASE_FRAME* aParen
m_DesignRuleWidthsCtrl->Append( msg );
if( widthSelection == wxNOT_FOUND && m_trackWidth.GetValue() == width )
widthSelection = ii;
widthSelection = ii - 1;
}
m_DesignRuleWidthsCtrl->SetSelection( widthSelection );