Make sure pin-caches are up-to-date before testing dangling ends.

Fixes: lp:1767745
* https://bugs.launchpad.net/kicad/+bug/1767745
This commit is contained in:
Jeff Young 2018-04-29 16:54:37 +01:00
parent 21ceb786ac
commit 7b734551d3
2 changed files with 5 additions and 0 deletions

View File

@ -555,6 +555,8 @@ void DIALOG_EDIT_COMPONENT_IN_SCHEMATIC::OnOKButtonClick( wxCommandEvent& event
}
}
m_cmp->UpdatePinCache();
GetParent()->OnModify();
GetParent()->GetScreen()->TestDanglingEnds();

View File

@ -1057,6 +1057,9 @@ void SCH_COMPONENT::SwapData( SCH_ITEM* aItem )
std::swap( m_unit, component->m_unit );
std::swap( m_convert, component->m_convert );
std::swap( m_Pins, component->m_Pins );
std::swap( m_isDangling, component->m_isDangling );
TRANSFORM tmp = m_transform;
m_transform = component->m_transform;