Fix name escaping in symbol editor

When renaming a symbol, be sure to handle name escaping in all of the
various places that we do renaming (!)

Fixes https://gitlab.com/kicad/code/kicad/issues/11939

(cherry picked from commit 0dab566270)
This commit is contained in:
Seth Hillbrand 2022-07-12 12:05:36 -07:00
parent 63e638cfab
commit 902629c139
1 changed files with 1 additions and 1 deletions

View File

@ -308,7 +308,7 @@ bool DIALOG_LIB_SYMBOL_PROPERTIES::TransferDataFromWindow()
return false; return false;
// We need to keep the name and the value the same at the moment! // We need to keep the name and the value the same at the moment!
wxString newName = m_fields->at( VALUE_FIELD ).GetText(); wxString newName = EscapeString( m_fields->at( VALUE_FIELD ).GetText(), CTX_LIBID );
wxString oldName = m_libEntry->GetName(); wxString oldName = m_libEntry->GetName();
if( oldName != newName ) if( oldName != newName )