Graph: fix rendering target line for ranges from profiles.
This commit is contained in:
parent
1471d2bcd5
commit
b5c35dea71
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue