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:
parent
63e638cfab
commit
902629c139
|
@ -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 )
|
||||||
|
|
Loading…
Reference in New Issue