From 60d1c09a14549d557d1c99b2e549b625332ca5ff Mon Sep 17 00:00:00 2001 From: Miika Turkia Date: Thu, 24 Jan 2013 18:44:50 +0800 Subject: [PATCH] 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 Signed-off-by: Dirk Hohndel --- profile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/profile.c b/profile.c index 4aa70ad11..2dce8003b 100644 --- a/profile.c +++ b/profile.c @@ -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 >= mintemp; } static void plot_single_temp_text(struct graphics_context *gc, int sec, int mkelvin)