Fix a couple of escape-string issues.
Fixes https://gitlab.com/kicad/code/kicad/issues/9167
This commit is contained in:
parent
754464cb3b
commit
3b121359ae
|
@ -31,6 +31,7 @@
|
||||||
#include <settings/settings_manager.h>
|
#include <settings/settings_manager.h>
|
||||||
#include <symbol_editor/symbol_editor_settings.h>
|
#include <symbol_editor/symbol_editor_settings.h>
|
||||||
#include <trigo.h>
|
#include <trigo.h>
|
||||||
|
#include <string_utils.h>
|
||||||
#include "sch_painter.h"
|
#include "sch_painter.h"
|
||||||
|
|
||||||
// small margin in internal units between the pin text and the pin line
|
// 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 );
|
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( _( "Number" ), GetShownNumber() ) );
|
||||||
aList.push_back( MSG_PANEL_ITEM( _( "Type" ), ElectricalPinTypeGetText( m_type ) ) );
|
aList.push_back( MSG_PANEL_ITEM( _( "Type" ), ElectricalPinTypeGetText( m_type ) ) );
|
||||||
aList.push_back( MSG_PANEL_ITEM( _( "Style" ), PinShapeGetText( m_shape ) ) );
|
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() )
|
if( !m_name.IsEmpty() )
|
||||||
{
|
{
|
||||||
return wxString::Format( _( "Pin %s [%s, %s, %s]" ),
|
return wxString::Format( _( "Pin %s [%s, %s, %s]" ),
|
||||||
m_number,
|
GetShownNumber(),
|
||||||
m_name,
|
UnescapeString( GetShownName() ),
|
||||||
GetElectricalTypeName(),
|
GetElectricalTypeName(),
|
||||||
PinShapeGetText( m_shape ) );
|
PinShapeGetText( m_shape ) );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
return wxString::Format( _( "Pin %s [%s, %s]" ),
|
return wxString::Format( _( "Pin %s [%s, %s]" ),
|
||||||
m_number,
|
GetShownNumber(),
|
||||||
GetElectricalTypeName(),
|
GetElectricalTypeName(),
|
||||||
PinShapeGetText( m_shape ) );
|
PinShapeGetText( m_shape ) );
|
||||||
}
|
}
|
||||||
|
|
|
@ -1631,7 +1631,7 @@ wxString SCH_SYMBOL::GetSelectMenuText( EDA_UNITS aUnits ) const
|
||||||
{
|
{
|
||||||
return wxString::Format( _( "Symbol %s [%s]" ),
|
return wxString::Format( _( "Symbol %s [%s]" ),
|
||||||
GetField( REFERENCE_FIELD )->GetShownText(),
|
GetField( REFERENCE_FIELD )->GetShownText(),
|
||||||
GetLibId().GetLibItemName().wx_str() );
|
UnescapeString( GetLibId().GetLibItemName() ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue