Merge pull request #665 from jotomo/graph-target-line-fix

Graph: fix rendering target line for ranges from profiles.
This commit is contained in:
Milos Kozak 2018-02-04 22:32:33 +01:00 committed by GitHub
commit 9fd8ad8705
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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;
}