diff --git a/eeschema/lib_pin.cpp b/eeschema/lib_pin.cpp index 7f9b7657e5..25a1c5e948 100644 --- a/eeschema/lib_pin.cpp +++ b/eeschema/lib_pin.cpp @@ -31,6 +31,7 @@ #include #include #include +#include #include "sch_painter.h" // small margin in internal units between the pin text and the pin line @@ -1022,7 +1023,7 @@ void LIB_PIN::GetMsgPanelInfo( EDA_DRAW_FRAME* aFrame, MSG_PANEL_ITEMS& aList ) { LIB_ITEM::GetMsgPanelInfo( aFrame, aList ); - aList.push_back( MSG_PANEL_ITEM( _( "Name" ), GetShownName() ) ); + aList.push_back( MSG_PANEL_ITEM( _( "Name" ), UnescapeString( GetShownName() ) ) ); aList.push_back( MSG_PANEL_ITEM( _( "Number" ), GetShownNumber() ) ); aList.push_back( MSG_PANEL_ITEM( _( "Type" ), ElectricalPinTypeGetText( m_type ) ) ); aList.push_back( MSG_PANEL_ITEM( _( "Style" ), PinShapeGetText( m_shape ) ) ); @@ -1178,15 +1179,15 @@ wxString LIB_PIN::GetSelectMenuText( EDA_UNITS aUnits ) const if( !m_name.IsEmpty() ) { return wxString::Format( _( "Pin %s [%s, %s, %s]" ), - m_number, - m_name, + GetShownNumber(), + UnescapeString( GetShownName() ), GetElectricalTypeName(), PinShapeGetText( m_shape ) ); } else { return wxString::Format( _( "Pin %s [%s, %s]" ), - m_number, + GetShownNumber(), GetElectricalTypeName(), PinShapeGetText( m_shape ) ); } diff --git a/eeschema/sch_symbol.cpp b/eeschema/sch_symbol.cpp index 9cc43ee560..0818faff19 100644 --- a/eeschema/sch_symbol.cpp +++ b/eeschema/sch_symbol.cpp @@ -1631,7 +1631,7 @@ wxString SCH_SYMBOL::GetSelectMenuText( EDA_UNITS aUnits ) const { return wxString::Format( _( "Symbol %s [%s]" ), GetField( REFERENCE_FIELD )->GetShownText(), - GetLibId().GetLibItemName().wx_str() ); + UnescapeString( GetLibId().GetLibItemName() ) ); }