null check for non-schematic symbol
Fixes https://gitlab.com/kicad/code/kicad/issues/8279
This commit is contained in:
parent
2c2ac39990
commit
d934dae21a
|
@ -781,7 +781,7 @@ void SCH_COMPONENT::UpdateFields( const SCH_SHEET_PATH* aPath, bool aUpdateStyle
|
|||
schField->SetTextPos( m_pos + libField->GetTextPos() );
|
||||
}
|
||||
|
||||
if( id == REFERENCE_FIELD )
|
||||
if( id == REFERENCE_FIELD && aPath )
|
||||
{
|
||||
if( aResetOtherFields )
|
||||
SetRef( aPath, m_part->GetReferenceField().GetText() );
|
||||
|
|
Loading…
Reference in New Issue