summaryrefslogtreecommitdiffstats
path: root/gtk-gui.c
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org>2013-01-03 13:01:49 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-01-03 21:43:34 -0800
commite5e2fb2038321a645be58497fdbccb30e321264c (patch)
tree1e99ed46b2818fa2b97defd274bd5f2d2814006e /gtk-gui.c
parent3c5ebfe03664ea9a719c9a5071caee63c3d813c2 (diff)
downloadsubsurface-e5e2fb2038321a645be58497fdbccb30e321264c.tar.gz
Fix cylinder printout information
If we print out the pressure difference (because we do not have a cylinder size), we didn't initialize the precision. We should print out pressures without decimals. The attached patch fixes that, and also avoids a NULL pointer printout (which on Linux will just print out "(null)") if there is no cylinder type descriptor string. It also cleans things up a bit and uses the "cyl" pointer instead of repeating the "dive->cylinder[n]" thing. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'gtk-gui.c')
0 files changed, 0 insertions, 0 deletions