Browse Source

Nullptr safety.

newinvert
Jeff Young 3 years ago
parent
commit
77ed53ab25
  1. 2
      eeschema/sim/sim_plot_frame.cpp

2
eeschema/sim/sim_plot_frame.cpp

@ -1816,7 +1816,7 @@ void SIM_PLOT_FRAME::updateSignalsGrid()
for( int row = 0; row < m_signalsGrid->GetNumberRows(); ++row )
{
if( TRACE* trace = plot->GetTrace( getTraceName( row ) ) )
if( TRACE* trace = plot ? plot->GetTrace( getTraceName( row ) ) : nullptr )
{
m_signalsGrid->SetCellValue( row, COL_SIGNAL_SHOW, wxS( "1" ) );

Loading…
Cancel
Save