From 62d453ecd876a36cd59bad3e957ab00dd4739d2e Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Sat, 29 Jun 2019 22:43:48 +0100 Subject: [PATCH] Fetching name got moved, but it got moved to before it was fetched out of the fields grid. Fixes: lp:1834711 * https://bugs.launchpad.net/kicad/+bug/1834711 --- eeschema/dialogs/dialog_edit_component_in_lib.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 );