Fix collecting of signals for S-Parameters analysis

(cherry picked from commit 006f93773c)
This commit is contained in:
Andrej Krpic 2024-02-22 17:40:14 +01:00 committed by Jeff Young
parent 7d5583f687
commit 14d71c8ca6
1 changed files with 6 additions and 2 deletions

View File

@ -901,8 +901,12 @@ void SIMULATOR_FRAME_UI::rebuildSignalsList()
const SIM_MODEL::PARAM* portNum = item.model->FindParam( "portnum" );
if( portNum )
portnums.push_back( SIM_VALUE::ToSpice( portNum->value ) );
std::string portnum = "";
if( const SIM_MODEL::PARAM* portnum_param = item.model->FindParam( "portnum" ) )
portnum = SIM_VALUE::ToSpice( portnum_param->value );
if( portnum != "" )
portnums.push_back( portnum );
}
for( const std::string& portnum1 : portnums )