Don't include unconnected nets in signals list.

Fixes https://gitlab.com/kicad/code/kicad/issues/4961
This commit is contained in:
Jeff Young 2023-02-01 00:37:44 +00:00
parent 7e6c68b1d1
commit b3ffbd6258
1 changed files with 3 additions and 1 deletions

View File

@ -562,7 +562,9 @@ void SIM_PLOT_FRAME::StartSimulation( const wxString& aSimCommand )
if( simulatorLock.owns_lock() )
{
wxBusyCursor toggle;
wxString unconnected = wxString( wxS( "unconnected-(" ) );
unconnected.Replace( '(', '_' ); // Convert to SPICE markup
m_signals.clear();
// Add voltages
@ -571,7 +573,7 @@ void SIM_PLOT_FRAME::StartSimulation( const wxString& aSimCommand )
// netnames are escaped (can contain "{slash}" for '/') Unscape them:
wxString netname = UnescapeString( net );
if( netname != "GND" && netname != "0" )
if( netname != "GND" && netname != "0" && !netname.StartsWith( unconnected ) )
m_signals.push_back( wxString::Format( "V(%s)", netname ) );
}