From b5c35dea71c761f3fd499a30cbe14c29ff5873f1 Mon Sep 17 00:00:00 2001 From: Johannes Mockenhaupt Date: Sun, 4 Feb 2018 22:01:30 +0100 Subject: [PATCH] Graph: fix rendering target line for ranges from profiles. --- .../androidaps/plugins/Overview/graphData/GraphData.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/Overview/graphData/GraphData.java b/app/src/main/java/info/nightscout/androidaps/plugins/Overview/graphData/GraphData.java index 916ee7596c..c84046b477 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/Overview/graphData/GraphData.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/Overview/graphData/GraphData.java @@ -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; }