From d934dae21ae10a524ca2ffa31ccfe36fb76a5740 Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Thu, 22 Apr 2021 17:53:21 -0700 Subject: [PATCH] null check for non-schematic symbol Fixes https://gitlab.com/kicad/code/kicad/issues/8279 --- eeschema/sch_symbol.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eeschema/sch_symbol.cpp b/eeschema/sch_symbol.cpp index c0f99fbf5f..bc81834660 100644 --- a/eeschema/sch_symbol.cpp +++ b/eeschema/sch_symbol.cpp @@ -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() );