Merge pull request #665 from jotomo/graph-target-line-fix
Graph: fix rendering target line for ranges from profiles.
This commit is contained in:
commit
9fd8ad8705
|
@ -244,7 +244,7 @@ public class GraphData {
|
||||||
TempTarget tt = TreatmentsPlugin.getPlugin().getTempTargetFromHistory(time);
|
TempTarget tt = TreatmentsPlugin.getPlugin().getTempTargetFromHistory(time);
|
||||||
double value;
|
double value;
|
||||||
if (tt == null) {
|
if (tt == null) {
|
||||||
value = (profile.getTargetLow() + profile.getTargetHigh()) / 2;
|
value = (profile.getTargetLow(time) + profile.getTargetHigh(time)) / 2;
|
||||||
} else {
|
} else {
|
||||||
value = (tt.low + tt.high) / 2;
|
value = (tt.low + tt.high) / 2;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue