From ad85f8078a02cacbe7f17c6e2e3ee8a6ba491a25 Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Wed, 6 Oct 2021 13:22:16 -0700 Subject: [PATCH] Reverse escaping when transferring multi-line We escape the strings coming out of the DIALOG_TEXT_PROPERTIES window, so we need to unescape the ones coming in Fixes https://gitlab.com/kicad/code/kicad/issues/9327 --- pcbnew/dialogs/dialog_text_properties.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pcbnew/dialogs/dialog_text_properties.cpp b/pcbnew/dialogs/dialog_text_properties.cpp index f19eb9cbdd..6f4ab24099 100644 --- a/pcbnew/dialogs/dialog_text_properties.cpp +++ b/pcbnew/dialogs/dialog_text_properties.cpp @@ -216,7 +216,8 @@ bool DIALOG_TEXT_PROPERTIES::TransferDataToWindow() else if( m_MultiLineText->IsShown() ) { BOARD* board = m_Parent->GetBoard(); - wxString converted = board->ConvertKIIDsToCrossReferences( m_edaText->GetText() ); + wxString converted = board->ConvertKIIDsToCrossReferences( + UnescapeString( m_edaText->GetText() ) ); m_MultiLineText->SetValue( converted ); m_MultiLineText->SetSelection( -1, -1 );