Do a better job of looking for .probe commands in directives.
Fixes https://gitlab.com/kicad/code/kicad/issues/13941
This commit is contained in:
parent
d8a4f9821e
commit
95232edd0d
|
@ -792,11 +792,17 @@ void SIM_PLOT_FRAME::rebuildSignalsList()
|
|||
// Add .PROBE directives
|
||||
for( const wxString& directive : m_circuitModel->GetDirectives() )
|
||||
{
|
||||
wxStringTokenizer tokenizer( directive, wxT( "\r\n" ), wxTOKEN_STRTOK );
|
||||
|
||||
while( tokenizer.HasMoreTokens() )
|
||||
{
|
||||
wxString line = tokenizer.GetNextToken().Upper();
|
||||
wxString directiveParams;
|
||||
|
||||
if( directive.Upper().StartsWith( wxS( ".PROBE" ), &directiveParams ) )
|
||||
if( line.Upper().StartsWith( wxS( ".PROBE" ), &directiveParams ) )
|
||||
m_signals.push_back( directiveParams.Trim( false ) );
|
||||
}
|
||||
}
|
||||
|
||||
std::sort( m_signals.begin(), m_signals.end(),
|
||||
[]( const wxString& lhs, const wxString& rhs )
|
||||
|
|
Loading…
Reference in New Issue