eeschema: Fixed setting unit condition in the component properties dialog

This commit is contained in:
Maciej Suminski 2018-04-13 12:56:01 +02:00
parent e57435c0fc
commit 862fb430e7
1 changed files with 1 additions and 1 deletions

View File

@ -391,7 +391,7 @@ void DIALOG_EDIT_COMPONENT_IN_SCHEMATIC::copyPanelToOptions()
}
//Set the part selection in multiple part per package
if( m_cmp->GetUnit() )
if( m_cmp->GetUnitCount() > 1 )
{
int unit_selection = unitChoice->GetCurrentSelection() + 1;