Unescape strings in search panel

Fixes https://gitlab.com/kicad/code/kicad/issues/12963
This commit is contained in:
Seth Hillbrand 2022-11-22 05:50:36 -08:00
parent 203f5538aa
commit 9403b5ce99
1 changed files with 3 additions and 3 deletions

View File

@ -72,7 +72,7 @@ wxString FOOTPRINT_SEARCH_HANDLER::GetResultCell( int aRow, int aCol )
if( aCol == 0 )
return fp->GetReference();
else if( aCol == 1 )
return fp->GetValue();
return UnescapeString( fp->GetValue() );
else if( aCol == 2 )
return fp->GetLayerName();
else if( aCol == 3 )
@ -251,11 +251,11 @@ wxString TEXT_SEARCH_HANDLER::GetResultCell( int aRow, int aCol )
{
if( PCB_TEXT::ClassOf( text ) )
{
return dynamic_cast<PCB_TEXT*>( text )->GetText();
return UnescapeString( static_cast<PCB_TEXT*>( text )->GetText() );
}
else if( PCB_TEXTBOX::ClassOf( text ) )
{
return dynamic_cast<PCB_TEXTBOX*>( text )->GetShownText();
return UnescapeString( static_cast<PCB_TEXTBOX*>( text )->GetShownText() );
}
}
if( aCol == 2 )