From 0f1a3e41834b92f4cb99e632e17fac823515a827 Mon Sep 17 00:00:00 2001 From: Mark Watkins Date: Thu, 22 Sep 2011 01:08:38 +1000 Subject: [PATCH] Fix pressure Summary Chart Min/Max values --- Graphs/gSummaryChart.cpp | 36 +++++++++++++++++++++++++++--------- 1 file changed, 27 insertions(+), 9 deletions(-) diff --git a/Graphs/gSummaryChart.cpp b/Graphs/gSummaryChart.cpp index c1d71161..a8660abe 100644 --- a/Graphs/gSummaryChart.cpp +++ b/Graphs/gSummaryChart.cpp @@ -199,13 +199,13 @@ void SummaryChart::paint(gGraph & w,int left, int top, int width, int height) bool lastdaygood=false; QVector totalcounts; QVector totalvalues; - QVector lastvalues; + //QVector lastvalues; QVector lastX; QVector lastY; int numcodes=m_codes.size(); totalcounts.resize(numcodes); totalvalues.resize(numcodes); - lastvalues.resize(numcodes); + //lastvalues.resize(numcodes); lastX.resize(numcodes); lastY.resize(numcodes); int zd=minx/86400000L; @@ -217,8 +217,14 @@ void SummaryChart::paint(gGraph & w,int left, int top, int width, int height) lastdaygood=true; for (int i=0;itotalvalues[j]) totalvalues[j]=tmp; + } else if (m_type[j]==ST_MIN) { + if (tmpadd(px+5,py-3,px+18,py-3,px+18,py+4,px+5,py+4,m_colors[j]); - //quads->add(m_colors[j]); //lines->add(px,py,px+20,py,m_colors[j]); //lines->add(px,py+1,px+20,py+1,m_colors[j]); }