mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-04-04 23:05:30 +00:00
Do not assume schematic child objects have a valid parent.
This commit is contained in:
parent
453e185613
commit
302038fbfd
@ -1781,8 +1781,12 @@ void SCH_EDIT_FRAME::RecalculateConnections( SCH_COMMIT* aCommit, SCH_CLEANUP_FL
|
||||
{
|
||||
case SCH_FIELD_T:
|
||||
case SCH_PIN_T:
|
||||
static_cast<SCH_ITEM*>( item->GetParent() )->SetConnectivityDirty();
|
||||
{
|
||||
SCH_ITEM* parent = static_cast<SCH_ITEM*>( item->GetParent() );
|
||||
wxCHECK2( parent, continue );
|
||||
parent->SetConnectivityDirty();
|
||||
break;
|
||||
}
|
||||
|
||||
default:
|
||||
item->SetConnectivityDirty();
|
||||
|
Loading…
Reference in New Issue
Block a user