Infobox math broken in current master

Robert Helling helling at lmu.de
Mon Jan 20 02:28:52 UTC 2014


On 20.01.2014, at 10:29, Robert Helling <helling at lmu.de> wrote:

Hi,

> But probably more important: The freezing of the info box and the crash go away once I comment out line 178 of diveprofileitem.cpp as

looked deeper into this. Turned out this was caused has my last dive has only a single temperature reading leading to an temperature plot of height zero which caused some geometry calculation to divide by zero. Here is a fix.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Cater-for-zero-height-axis.patch
Type: application/octet-stream
Size: 978 bytes
Desc: not available
URL: <http://lists.hohndel.org/pipermail/subsurface/attachments/20140120/477bc159/attachment.obj>
-------------- next part --------------

I hope that isnan() is available everywhere (the web wasn’t really sure about it). Of course the real issue is size==0.0 but how do I reliably test a float for zeroness, i.e. that I get NaN when I divide by it?

Best
Robert

-- 
.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oO
Robert C. Helling     Elite Master Course Theoretical and Mathematical Physics
                      Scientific Coordinator
                      Ludwig Maximilians Universitaet Muenchen, Dept. Physik
                      Phone: +49 89 2180-4523  Theresienstr. 39, rm. B339
                      http://www.atdotde.de

Enhance your privacy, use cryptography! My PGP keys have fingerprints
A9D1 A01D 13A5 31FA 6515  BB44 0820 367C 36BC 0C1D    and
DCED 37B6 251C 7861 270D  5613 95C7 9D32 9A8D 9B8F




-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 203 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.hohndel.org/pipermail/subsurface/attachments/20140120/477bc159/attachment.sig>


More information about the subsurface mailing list