diff --git a/eeschema/schematic_undo_redo.cpp b/eeschema/schematic_undo_redo.cpp index 4fe86bdc76..7b5ae475e2 100644 --- a/eeschema/schematic_undo_redo.cpp +++ b/eeschema/schematic_undo_redo.cpp @@ -325,7 +325,7 @@ void SCH_EDIT_FRAME::PutDataInPreviousState( PICKED_ITEMS_LIST* aList ) DS_PROXY_UNDO_ITEM alt_item( this ); DS_PROXY_UNDO_ITEM* item = static_cast( eda_item ); item->Restore( this ); - *item = std::move( alt_item ); + *item = alt_item; } else if( SCH_ITEM* item = dynamic_cast( eda_item ) ) {