Unescape netnames in search panel

Fixes https://gitlab.com/kicad/code/kicad/issues/12960
This commit is contained in:
Seth Hillbrand 2022-11-21 15:47:08 -08:00
parent 938645b29d
commit 0e818360c4
1 changed files with 7 additions and 6 deletions

View File

@ -19,14 +19,15 @@
#include <base_units.h>
#include <footprint.h>
#include <tool/tool_manager.h>
#include <tools/pcb_actions.h>
#include <pcb_edit_frame.h>
#include <pcb_marker.h>
#include <pcb_painter.h>
#include <pcb_textbox.h>
#include <pcb_text.h>
#include <string_utils.h>
#include <tool/tool_manager.h>
#include <tools/pcb_actions.h>
#include <zone.h>
#include <pcb_painter.h>
#include "search_handlers.h"
@ -147,7 +148,7 @@ wxString ZONE_SEARCH_HANDLER::GetResultCell( int aRow, int aCol )
if( aCol == 0 )
return zone->GetZoneName();
if( aCol == 1 )
return zone->GetNetname();
return UnescapeString( zone->GetNetname() );
else if( aCol == 2 )
{
wxArrayString layers;
@ -323,7 +324,7 @@ wxString NETS_SEARCH_HANDLER::GetResultCell( int aRow, int aCol )
NETINFO_ITEM* net = m_hitlist[aRow];
if( aCol == 0 )
return net->GetNetname();
return UnescapeString( net->GetNetname() );
else if( aCol == 1 )
return net->GetNetClass()->GetName();
@ -349,4 +350,4 @@ void NETS_SEARCH_HANDLER::SelectItems( std::vector<long>& aItemRows )
m_frame->GetCanvas()->GetView()->UpdateAllLayersColor();
m_frame->GetCanvas()->Refresh();
}
}