From b13bfd0213c59338456d9e73a0180239573871ae Mon Sep 17 00:00:00 2001 From: Mark Watkins Date: Sun, 4 Dec 2011 22:44:09 +1000 Subject: [PATCH] Fix PRS1 Import crash, fix empty summarychart displaying glitch --- Graphs/gSummaryChart.cpp | 7 +++++++ SleepLib/calcs.cpp | 21 ++++++++++++++------- 2 files changed, 21 insertions(+), 7 deletions(-) diff --git a/Graphs/gSummaryChart.cpp b/Graphs/gSummaryChart.cpp index 8e4f180d..48e165c6 100644 --- a/Graphs/gSummaryChart.cpp +++ b/Graphs/gSummaryChart.cpp @@ -192,7 +192,14 @@ void SummaryChart::SetDay(Day * nullday) break; } } + //m_empty=false; + } + } + m_empty=true; + for (int i=0;i=breaths.size()) { + done=true; + break; + } else { + t1=breaths_start[i]; + t2=t1+window; + fir=i; + cont=true; + break; + } //q=(t+l)-t1; //br+=(1.0/double(l))*double(q);