mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-03-30 06:16:56 +00:00
Switch to operator= for item updates
Fixes https://gitlab.com/kicad/code/kicad/-/issues/20206
This commit is contained in:
parent
49a4699d5a
commit
d0b22d21bb
@ -478,7 +478,7 @@ HANDLER_RESULT<ItemRequestStatus> API_HANDLER_PCB::handleCreateUpdateItemsIntern
|
||||
{
|
||||
BOARD_ITEM* boardItem = *optItem;
|
||||
commit->Modify( boardItem );
|
||||
boardItem->SwapItemData( item.get() );
|
||||
*boardItem = *item;
|
||||
boardItem->Serialize( newItem );
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user