diff --git a/Graphs/gSummaryChart.cpp b/Graphs/gSummaryChart.cpp index 309054fc..bd5b693a 100644 --- a/Graphs/gSummaryChart.cpp +++ b/Graphs/gSummaryChart.cpp @@ -475,9 +475,9 @@ void SummaryChart::paint(gGraph & w,int left, int top, int width, int height) py2+=j; if (lastdaygood) { lines->add(lastX[j],lastY[j],px,py2,m_colors[j]); - lines->add(px,py2,px2,py2,col); + lines->add(px,py2,px2+1,py2,col); } else { - lines->add(x1,py2,x2,py2,col); + lines->add(x1,py2,x2+1,py2,col); } lastX[j]=px2; lastY[j]=py2; diff --git a/Graphs/gSummaryChart.h b/Graphs/gSummaryChart.h index e2fe810e..cde81df2 100644 --- a/Graphs/gSummaryChart.h +++ b/Graphs/gSummaryChart.h @@ -71,7 +71,8 @@ class SummaryChart:public Layer QHash m_hours; QHash m_days; - GLShortBuffer *quads,*lines; + GLShortBuffer *quads; + GLShortBuffer *lines; bool m_empty; int m_fday; QString m_label;