From 862fb430e783862946b5239f687abadd3865fe5b Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Fri, 13 Apr 2018 12:56:01 +0200 Subject: [PATCH] eeschema: Fixed setting unit condition in the component properties dialog --- eeschema/dialogs/dialog_edit_component_in_schematic.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eeschema/dialogs/dialog_edit_component_in_schematic.cpp b/eeschema/dialogs/dialog_edit_component_in_schematic.cpp index 177146de6e..12f69c269c 100644 --- a/eeschema/dialogs/dialog_edit_component_in_schematic.cpp +++ b/eeschema/dialogs/dialog_edit_component_in_schematic.cpp @@ -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;