Temperature in info box

Tomaz Canabrava tcanabrava at kde.org
Tue Nov 12 15:04:46 UTC 2013


Well, I think that I introduced that when I started to port subsurface from
gtk  to qt and I really didin't really know what I was doing at the time.
Thanks for the series of patches. :)


On Tue, Nov 12, 2013 at 7:57 PM, Anton Lundin <glance at acc.umu.se> wrote:

> Hi.
>
> When i look at a dive profile and the temperature in the info box, its
> only there on the exact sample where the temperature is stored. This is
> in contrast to this cns, stopdepth and so in are filled out from the
> first sample where its shown until we have found another value. This is
> done in parse-xml.c:1429(sample_start).
>
> We also remove repeated temperature values, in
> dive.c:751(fixup_dive_dc).
>
> When we save the xml we remove duplicate values for cns, stopdepth and
> so on in save-xml.c:340(save_sample)
>
> Is there a reason we handle temperature diffrent from cns, stopdepth and
> so on?
>
> The simplest fix to this is just to fill up with temperature data in the
> plot_data structs so we can get a Temp:-value in the Info-box all the
> way. A patch for doing just that is coming.
>
> //Anton
>
> --
> Anton Lundin    +46702-161604
> _______________________________________________
> subsurface mailing list
> subsurface at hohndel.org
> http://lists.hohndel.org/cgi-bin/mailman/listinfo/subsurface
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.hohndel.org/pipermail/subsurface/attachments/20131112/0a68af80/attachment.html>


More information about the subsurface mailing list