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:
parent
bf5ce3a1ba
commit
91446c1515
|
@ -336,7 +336,6 @@ void SCH_EDIT_FRAME::DeleteJunction( SCH_ITEM* aJunction, bool aAppend )
|
||||||
{
|
{
|
||||||
aItem->SetFlags( STRUCT_DELETED );
|
aItem->SetFlags( STRUCT_DELETED );
|
||||||
itemList.PushItem( ITEM_PICKER( aItem, UR_DELETED ) );
|
itemList.PushItem( ITEM_PICKER( aItem, UR_DELETED ) );
|
||||||
RemoveFromScreen( aItem );
|
|
||||||
};
|
};
|
||||||
|
|
||||||
remove_item( aJunction );
|
remove_item( aJunction );
|
||||||
|
|
Loading…
Reference in New Issue