mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Only display temperature graph if we have temperature data
Commit b625332ca5ff "Display even constant temperature graph" was a little too aggressive. If we have no temperature data at all it caused us to plot a temperature line for absolute zero... Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
1bcc8dd991
commit
51880785af
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;
|
||||
|
||||
pi->endtempcoord = SCALEY(gc, pi->mintemp);
|
||||
return maxtemp >= mintemp;
|
||||
return maxtemp && maxtemp >= mintemp;
|
||||
}
|
||||
|
||||
static void plot_single_temp_text(struct graphics_context *gc, int sec, int mkelvin)
|
||||
|
|
Loading…
Add table
Reference in a new issue