Commit 902629c1 authored by Seth Hillbrand's avatar Seth Hillbrand 🇺🇦
Browse files

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 #11939

(cherry picked from commit 0dab5662)
parent 63e638cf
......@@ -308,7 +308,7 @@ bool DIALOG_LIB_SYMBOL_PROPERTIES::TransferDataFromWindow()
return false;
// 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();
if( oldName != newName )
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment