diff --git a/eeschema/dialogs/dialog_edit_component_in_lib.cpp b/eeschema/dialogs/dialog_edit_component_in_lib.cpp index c40e42bf62..b23b460da9 100644 --- a/eeschema/dialogs/dialog_edit_component_in_lib.cpp +++ b/eeschema/dialogs/dialog_edit_component_in_lib.cpp @@ -312,7 +312,7 @@ bool DIALOG_EDIT_COMPONENT_IN_LIBRARY::TransferDataFromWindow() LIB_ALIAS* rootAlias = m_libEntry->GetAlias( m_libEntry->GetName() ); // We need to keep the name and the value the same at the moment! - wxString newName = m_libEntry->GetValueField().GetText(); + wxString newName = m_fields->at( VALUE ).GetText(); if( m_libEntry->GetName() != newName ) m_Parent->SaveCopyInUndoList( m_libEntry, UR_LIB_RENAME );