Fix collecting of signals for S-Parameters analysis

This commit is contained in:
Andrej Krpic 2024-02-22 17:40:14 +01:00 committed by Jeff Young
parent d04d74c511
commit 006f93773c
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 )