From 3bac9344d2bb2c0bf3e569e35b064935899352ec Mon Sep 17 00:00:00 2001 From: Jon Evans <jon@craftyjon.com> Date: Fri, 28 Mar 2025 18:39:49 -0400 Subject: [PATCH] Revert "Switch to operator= for item updates" This reverts commit d0b22d21bb27f680941a52ca25c1bde683107c30. --- pcbnew/api/api_handler_pcb.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcbnew/api/api_handler_pcb.cpp b/pcbnew/api/api_handler_pcb.cpp index 8e7b5781f0..1a1f8f95d2 100644 --- a/pcbnew/api/api_handler_pcb.cpp +++ b/pcbnew/api/api_handler_pcb.cpp @@ -478,7 +478,7 @@ HANDLER_RESULT<ItemRequestStatus> API_HANDLER_PCB::handleCreateUpdateItemsIntern { BOARD_ITEM* boardItem = *optItem; commit->Modify( boardItem ); - *boardItem = *item; + boardItem->SwapItemData( item.get() ); boardItem->Serialize( newItem ); }