From 08654561fd91487fb9e03298a51a3d68e6fede85 Mon Sep 17 00:00:00 2001 From: Mark Watkins Date: Wed, 28 Dec 2011 17:45:48 +1000 Subject: [PATCH] This hopefully fixes SummaryChart line 'nibbling' on mac --- Graphs/gSummaryChart.cpp | 4 ++-- Graphs/gSummaryChart.h | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) 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;