eeschema: Update pin cache after conversion

Pin caches need to be updated when the unit is converted as the pin
location may have changed in conversion.

Fixes: lp:1816207
* https://bugs.launchpad.net/kicad/+bug/1816207
This commit is contained in:
Seth Hillbrand 2019-02-15 18:29:43 -08:00
parent 99be68f0f2
commit bf814b25da
1 changed files with 1 additions and 0 deletions

View File

@ -383,6 +383,7 @@ void SCH_EDIT_FRAME::ConvertPart( SCH_COMPONENT* aComponent )
// The alternate symbol may cause a change in the connection status so test the // The alternate symbol may cause a change in the connection status so test the
// connections so the connection indicators are drawn correctly. // connections so the connection indicators are drawn correctly.
aComponent->UpdatePinCache();
TestDanglingEnds(); TestDanglingEnds();
aComponent->ClearFlags(); aComponent->ClearFlags();
aComponent->SetFlags( flags ); // Restore m_Flag (modified by SetConvert()) aComponent->SetFlags( flags ); // Restore m_Flag (modified by SetConvert())