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:
Seth Hillbrand 2019-08-04 09:02:31 -07:00
parent 450dac4b1e
commit 4363e6a213
1 changed files with 0 additions and 1 deletions

View File

@ -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 );