summaryrefslogtreecommitdiffstats
path: root/profile.c
diff options
context:
space:
mode:
authorGravatar Miika Turkia <miika.turkia@gmail.com>2013-01-24 18:44:50 +0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-01-24 13:14:53 -0800
commit60d1c09a14549d557d1c99b2e549b625332ca5ff (patch)
tree4cddeb46d0805df918801477d3f9c32d1a8f53cd /profile.c
parent55296e9dad8d0449c366ff888510208820c778f0 (diff)
downloadsubsurface-60d1c09a14549d557d1c99b2e549b625332ca5ff.tar.gz
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>
Diffstat (limited to 'profile.c')
-rw-r--r--profile.c2
1 files changed, 1 insertions, 1 deletions
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)