From 902629c1399535aebbe8ece6d0ec8ff63aca6f49 Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Tue, 12 Jul 2022 12:05:36 -0700 Subject: [PATCH] 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 0dab5662704b9f7933daa67e232daf9681369119) --- eeschema/dialogs/dialog_lib_symbol_properties.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eeschema/dialogs/dialog_lib_symbol_properties.cpp b/eeschema/dialogs/dialog_lib_symbol_properties.cpp index fc183d4dcc..dbb3b42cac 100644 --- a/eeschema/dialogs/dialog_lib_symbol_properties.cpp +++ b/eeschema/dialogs/dialog_lib_symbol_properties.cpp @@ -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 )