Dirk Hohndel 21b7ebbaf0 Fix crash when adding dive to empty dive list
Only look up the dive number of a previous dive if there is a previous
dive.

Reported-by: Henrik Brautaset Aronsen <subsurface@henrik.synth.no>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2013-09-22 07:00:14 -07:00
..
2013-09-02 05:57:08 -03:00
2013-07-19 10:24:59 -07:00
2013-06-24 07:44:28 -07:00
2013-07-11 09:22:20 -03:00
2013-08-13 20:29:22 +02:00
2013-06-19 10:20:56 -07:00
2013-05-17 22:27:50 -07:00
2013-09-10 14:55:30 -07:00
2013-06-17 13:54:50 -03:00
2013-06-19 10:20:56 -07:00
2013-09-03 13:57:38 -03:00
2013-09-03 13:57:38 -03:00
2013-09-03 13:57:38 -03:00