Be sure that we are getting the SCH_SYMBOL values

Fixes https://gitlab.com/kicad/code/kicad/-/issues/17782
This commit is contained in:
Seth Hillbrand 2024-04-17 13:50:26 -07:00
parent d2701323a8
commit 2f7cc5fa2b
1 changed files with 1 additions and 1 deletions

View File

@ -725,7 +725,7 @@ XNODE* NETLIST_EXPORTER_XML::makeListOfNets( unsigned aCtl )
if( item->Type() == SCH_PIN_T )
{
SCH_PIN* pin = static_cast<SCH_PIN*>( item );
SYMBOL* symbol = pin->GetParentSymbol();
SCH_SYMBOL* symbol = static_cast<SCH_SYMBOL*>( pin->GetParentSymbol() );
if( !symbol
|| ( ( aCtl & GNL_OPT_BOM ) && symbol->GetExcludedFromBOM() )