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
This commit is contained in:
Seth Hillbrand 2021-10-06 13:22:16 -07:00
parent b5cd976845
commit ad85f8078a
1 changed files with 2 additions and 1 deletions

View File

@ -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 );