diff --git a/eeschema/symbol_editor/symbol_library_manager.cpp b/eeschema/symbol_editor/symbol_library_manager.cpp index 3bbcb1ad0a..1ee8fa01f6 100644 --- a/eeschema/symbol_editor/symbol_library_manager.cpp +++ b/eeschema/symbol_editor/symbol_library_manager.cpp @@ -531,7 +531,8 @@ LIB_ID SYMBOL_LIBRARY_MANAGER::RevertSymbol( const wxString& aAlias, const wxStr } else { - symbolBuf->SetSymbol( new LIB_SYMBOL( original ) ); + // copy the initial data to the current symbol to restore + *symbolBuf->GetSymbol() = original; m_frame.SyncLibraries( false ); }