eeschema: Fix list invalidation
When removing a junction, we need to keep the next pointer for deleted item, marking them with a flag until committed. Fixes: lp:1837398 * https://bugs.launchpad.net/kicad/+bug/1837398
This commit is contained in:
parent
450dac4b1e
commit
4363e6a213
|
@ -745,7 +745,6 @@ void SCH_EDIT_FRAME::DeleteJunction( SCH_ITEM* aJunction, bool aAppend )
|
|||
{
|
||||
aItem->SetFlags( STRUCT_DELETED );
|
||||
itemList.PushItem( ITEM_PICKER( aItem, UR_DELETED ) );
|
||||
RemoveFromScreen( aItem );
|
||||
};
|
||||
|
||||
remove_item( aJunction );
|
||||
|
|
Loading…
Reference in New Issue