mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-05 10:40:42 +00:00
Fix PRS1 Import crash, fix empty summarychart displaying glitch
This commit is contained in:
parent
674c82e263
commit
b13bfd0213
@ -192,7 +192,14 @@ void SummaryChart::SetDay(Day * nullday)
|
||||
break;
|
||||
}
|
||||
}
|
||||
//m_empty=false;
|
||||
}
|
||||
}
|
||||
m_empty=true;
|
||||
for (int i=0;i<m_goodcodes.size();i++) {
|
||||
if (m_goodcodes[m_codes[i]]) {
|
||||
m_empty=false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (m_graphtype==GT_BAR) {
|
||||
|
@ -154,6 +154,7 @@ int filterFlow(EventList *in, EventList *out, EventList *tv, EventList *mv, doub
|
||||
|
||||
int fir=0,fir2=0;
|
||||
EventDataType T,L;
|
||||
bool done=false;
|
||||
do {
|
||||
br=0;
|
||||
bool first=true;
|
||||
@ -170,14 +171,20 @@ int filterFlow(EventList *in, EventList *out, EventList *tv, EventList *mv, doub
|
||||
first=false;
|
||||
fir=i;
|
||||
}
|
||||
//q=1;
|
||||
//q=1; // 22:28pm
|
||||
if (t<t1) {
|
||||
// move to start of previous breath
|
||||
t1=breaths_start[++i];
|
||||
// move to start of next breath
|
||||
i++;
|
||||
if (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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user