diff --git a/eeschema/api/api_handler_sch.cpp b/eeschema/api/api_handler_sch.cpp index 96cc61d56d..44b68990fe 100644 --- a/eeschema/api/api_handler_sch.cpp +++ b/eeschema/api/api_handler_sch.cpp @@ -264,7 +264,7 @@ HANDLER_RESULT API_HANDLER_SCH::handleCreateUpdateItemsIntern if( SCH_ITEM* schItem = dynamic_cast( edaItem ) ) { - schItem->SwapData( static_cast( item.get() ) ); + schItem->SwapItemData( static_cast( item.get() ) ); schItem->Serialize( newItem ); commit->Modify( schItem ); }