Graph: fix rendering target line for ranges from profiles.

This commit is contained in:
Johannes Mockenhaupt 2018-02-04 22:01:30 +01:00
parent 1471d2bcd5
commit b5c35dea71
No known key found for this signature in database
GPG key ID: 9E1EA6AF7BBBB0D1

View file

@ -244,7 +244,7 @@ public class GraphData {
TempTarget tt = TreatmentsPlugin.getPlugin().getTempTargetFromHistory(time);
double value;
if (tt == null) {
value = (profile.getTargetLow() + profile.getTargetHigh()) / 2;
value = (profile.getTargetLow(time) + profile.getTargetHigh(time)) / 2;
} else {
value = (tt.low + tt.high) / 2;
}