mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
Display even constant temperature graph
Dive profile does not display the temperature graph, if we have a constant temperature (e.g. only one reading at the start of the dive). This patch draws the temperature graph even if max and min temperatures are the same. Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
55296e9dad
commit
60d1c09a14
1 changed files with 1 additions and 1 deletions
|
@ -883,7 +883,7 @@ static int setup_temperature_limits(struct graphics_context *gc, struct plot_inf
|
||||||
gc->bottomy = mintemp - delta / 3;
|
gc->bottomy = mintemp - delta / 3;
|
||||||
|
|
||||||
pi->endtempcoord = SCALEY(gc, pi->mintemp);
|
pi->endtempcoord = SCALEY(gc, pi->mintemp);
|
||||||
return maxtemp > mintemp;
|
return maxtemp >= mintemp;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void plot_single_temp_text(struct graphics_context *gc, int sec, int mkelvin)
|
static void plot_single_temp_text(struct graphics_context *gc, int sec, int mkelvin)
|
||||||
|
|
Loading…
Reference in a new issue