diff --git a/eeschema/sim/sim_plot_tab.cpp b/eeschema/sim/sim_plot_tab.cpp index 6eba493392..de57d208b7 100644 --- a/eeschema/sim/sim_plot_tab.cpp +++ b/eeschema/sim/sim_plot_tab.cpp @@ -832,9 +832,10 @@ void SIM_PLOT_TAB::SetTraceData( TRACE* trace, unsigned int aPoints, const doubl std::vector x( aX, aX + aPoints ); std::vector y( aY, aY + aPoints ); - if( GetSimType() == ST_AC || GetSimType() == ST_SP || GetSimType() == ST_FFT ) + if( dynamic_cast*>( m_axis_x ) ) { // log( 0 ) is not valid. + if( x.size() > 0 && x[0] == 0 ) { x.erase( x.begin() ); y.erase( y.begin() );