[PATCH] Display even constant temperature graph
Dirk Hohndel
dirk at hohndel.org
Thu Jan 24 07:03:08 PST 2013
On Jan 24, 2013, at 2:44 AM, Miika Turkia wrote:
> 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.
I'll ask Linus to confirm this, but I'm reasonably certain that this was intentional.
> Signed-off-by: Miika Turkia <miika.turkia at gmail.com>
> ---
> profile.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/profile.c b/profile.c
> index 4aa70ad..2dce800 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;
> }
That would seem to create an "always true" condition - right?
/D
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4130 bytes
Desc: not available
URL: <http://lists.hohndel.org/pipermail/subsurface/attachments/20130124/ab2e6fad/attachment.bin>
More information about the subsurface
mailing list