mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-05 10:40:42 +00:00
Fix session averaging bug discovered when fixing warning. May fix #59.
This commit is contained in:
parent
e67aae78cf
commit
6e6bc81be8
@ -1074,8 +1074,8 @@ void gTTIAChart::afterDraw(QPainter &, gGraph &graph, QRectF rect)
|
||||
}
|
||||
break;
|
||||
case 2:
|
||||
if (calc.divisor > 0) {
|
||||
mid = calc.avg_sum / calc.divisor;
|
||||
if (calc.cnt > 0) {
|
||||
mid = calc.avg_sum / calc.cnt;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user