From 8aefb817b463f161070c35a3889ab2040d3ed3f1 Mon Sep 17 00:00:00 2001 From: Mark Watkins Date: Wed, 30 Nov 2011 19:26:15 +1000 Subject: [PATCH] Session Usage summarychart range fix --- Graphs/gSummaryChart.cpp | 7 +++++-- preferencesdialog.ui | 20 ++++++++++++++++++-- 2 files changed, 23 insertions(+), 4 deletions(-) diff --git a/Graphs/gSummaryChart.cpp b/Graphs/gSummaryChart.cpp index 30b9c426..3fb90d60 100644 --- a/Graphs/gSummaryChart.cpp +++ b/Graphs/gSummaryChart.cpp @@ -80,10 +80,13 @@ void SummaryChart::SetDay(Day * nullday) zt %= 86400; tmp2=zt/3600.0; if (tmp2+tmp<16) { - m_times[dn][s]=(tmp2+12); + tmp2+=12; + //m_times[dn][s]=(tmp2+12); } else { - m_times[dn][s]=(tmp2)-12; + tmp2-=12; + //m_times[dn][s]=(tmp2)-12; } + m_times[dn][s]=tmp2; if (tmp2 < m_miny) m_miny=tmp2; if (tmp2+tmp > m_maxy) m_maxy=tmp2+tmp; diff --git a/preferencesdialog.ui b/preferencesdialog.ui index 4c7201d4..5aced710 100644 --- a/preferencesdialog.ui +++ b/preferencesdialog.ui @@ -38,7 +38,7 @@ - 6 + 3 @@ -548,10 +548,26 @@ p, li { white-space: pre-wrap; } + + 0 + + + 2 + + + 0 + + + 0 + + + QFrame::StyledPanel + - Hmmm... Empty Space + Hmmm... Empty Space +Mask History could go here one day Qt::AlignCenter