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
This commit is contained in:
Jeff Young 2019-06-29 22:43:48 +01:00
parent d88bddad7e
commit 62d453ecd8
1 changed files with 1 additions and 1 deletions

View File

@ -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 );