Fix eeschema crash when updating fields from libraries, and when a symbol in schematic is not found in libs
Fixes: lp:1779722 https://bugs.launchpad.net/kicad/+bug/1779722
This commit is contained in:
parent
520c6116f5
commit
3df27430c7
|
@ -135,6 +135,10 @@ void DIALOG_UPDATE_FIELDS::updateFields( SCH_COMPONENT* aComponent )
|
|||
SCH_FIELDS newFields;
|
||||
|
||||
PART_SPTR libPart = aComponent->GetPartRef().lock();
|
||||
|
||||
if( libPart == nullptr ) // the symbol is not found in lib: cannot update fields
|
||||
return;
|
||||
|
||||
aComponent->GetFields( oldFields, false );
|
||||
|
||||
for( auto compField : oldFields )
|
||||
|
|
Loading…
Reference in New Issue