From bfe66a83cf941eb8a02057903b2e594730b62b95 Mon Sep 17 00:00:00 2001 From: Mark Watkins Date: Mon, 5 Dec 2011 21:38:29 +1000 Subject: [PATCH] SummaryChart Legend fix --- Graphs/gSummaryChart.cpp | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/Graphs/gSummaryChart.cpp b/Graphs/gSummaryChart.cpp index 810f5ac4..6c444a74 100644 --- a/Graphs/gSummaryChart.cpp +++ b/Graphs/gSummaryChart.cpp @@ -470,7 +470,7 @@ void SummaryChart::paint(gGraph & w,int left, int top, int width, int height) int x,y; for (int j=0;j0) { + if ((m_type[j]==ST_MIN) || (m_type[j]==ST_MAX)) { + f=totalvalues[j]; + } else { + f=totalvalues[j]/totalcounts[j]; + } } if (m_type[j]==ST_HOURS) { int h=f; @@ -649,7 +651,7 @@ bool SummaryChart::mouseMoveEvent(QMouseEvent *event) } else { QString a; for (int i=0;i