Eeschema, slash in power pin name: better fix than commit ba7a06f5
.
ba7a06f5
tried to fix a (minor) issue in net names when the name was coming from a input power pin having a '/' in name. Butba7a06f5
blindly escaped any '/' in net name, and the hierarchy info was lost. Now only the pin name is escaped (like any other pin name used in net names)
This commit is contained in:
parent
67d149ca73
commit
b5c83ffd95
|
@ -758,7 +758,7 @@ XNODE* NETLIST_EXPORTER_XML::makeListOfNets( unsigned aCtl )
|
|||
|
||||
xnets->AddChild( xnet = node( wxT( "net" ) ) );
|
||||
xnet->AddAttribute( wxT( "code" ), netCodeTxt );
|
||||
xnet->AddAttribute( wxT( "name" ), EscapeString( net_record->m_Name, CTX_NETNAME ) );
|
||||
xnet->AddAttribute( wxT( "name" ), net_record->m_Name );
|
||||
|
||||
added = true;
|
||||
}
|
||||
|
|
|
@ -258,7 +258,7 @@ void SCH_PIN::ClearDefaultNetName( const SCH_SHEET_PATH* aPath )
|
|||
wxString SCH_PIN::GetDefaultNetName( const SCH_SHEET_PATH& aPath, bool aForceNoConnect )
|
||||
{
|
||||
if( m_libPin->IsPowerConnection() )
|
||||
return m_libPin->GetName();
|
||||
return EscapeString( m_libPin->GetName(), CTX_NETNAME );
|
||||
|
||||
std::lock_guard<std::recursive_mutex> lock( m_netmap_mutex );
|
||||
|
||||
|
|
Loading…
Reference in New Issue