diff --git a/Graphs/gLineChart.cpp b/Graphs/gLineChart.cpp index a9ca45ea..9da84bdb 100644 --- a/Graphs/gLineChart.cpp +++ b/Graphs/gLineChart.cpp @@ -126,14 +126,12 @@ void gLineChart::Plot(gGraphWindow & w,float scrx,float scry) bool square_plot,accel; for (vector::iterator s=m_day->begin(); s!=m_day->end(); s++) { + if ((*s)->eventlist.find(m_code)==(*s)->eventlist.end()) continue; + vector & evec=(*s)->eventlist[m_code]; - if (evec.size()==0) continue; // not possible - num_points=0; - for (unsigned i=0;icount(); - - if (!num_points) continue; - + for (unsigned i=0;icount(); total_points+=num_points; for (unsigned n=0;n