Overview: fix rendering zero-temp covering entire displayed range.

(cherry picked from commit 525eaef)
This commit is contained in:
Johannes Mockenhaupt 2018-04-12 20:55:45 +02:00
parent 80e81b1c25
commit b04eee0b52
No known key found for this signature in database
GPG key ID: 9E1EA6AF7BBBB0D1

View file

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