Don't assert when a sim returns no results.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/16749
This commit is contained in:
Jeff Young 2024-01-25 15:36:30 +00:00
parent 70bca8bc4e
commit a2b204572d
1 changed files with 2 additions and 1 deletions

View File

@ -2766,7 +2766,8 @@ void SIMULATOR_FRAME_UI::OnSimRefresh( bool aFinal )
{
std::vector<double> val_list = simulator()->GetRealVector( vec, 1 );
wxCHECK2( !val_list.empty(), continue );
if( val_list.empty() )
continue;
wxString value = SPICE_VALUE( val_list[ 0 ] ).ToSpiceString();
wxString signal;