Merge pull request #877 from jotomo/zeor-temp-basal

Overview: fix rendering zero-temp covering entire displayed range.
This commit is contained in:
Milos Kozak 2018-04-12 21:16:42 +02:00 committed by GitHub
commit 5d81e40f74
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -172,7 +172,7 @@ public class GraphData {
lastAbsoluteLineBasal = absoluteLineValue;
lastLineBasal = baseBasalValue;
lastTempBasal = tempBasalValue;
maxBasalValueFound = Math.max(maxBasalValueFound, basal);
maxBasalValueFound = Math.max(maxBasalValueFound, Math.max(tempBasalValue, baseBasalValue));
}
basalLineArray.add(new ScaledDataPoint(toTime, lastLineBasal, basalScale));