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

(cherry picked from commit 4363e6a213)
This commit is contained in:
Seth Hillbrand 2019-08-04 09:02:31 -07:00
parent bf5ce3a1ba
commit 91446c1515
1 changed files with 0 additions and 1 deletions

View File

@ -336,7 +336,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 );