Anton Lundin 8e5eb71e0b Correct usage of current_dive to displayed_dive
current_dive is the selected dive, and displayed_dive is the one we are
currently drawing. They are quite often the same one, but not in the
case of adding a dive for example.

This fixes potential null pointer dereferences in the case of a blank
divelist, and makes sure we use the correct data in the case of adding
and planning dives.

Signed-off-by: Anton Lundin <glance@acc.umu.se>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2014-07-18 10:09:42 -07:00
..
2014-06-26 15:47:02 -07:00
2014-02-08 08:00:27 -08:00
2014-06-26 15:47:02 -07:00
2014-06-26 15:47:02 -07:00
2014-07-11 07:06:26 -07:00
2014-06-26 15:47:02 -07:00
2014-07-15 17:05:46 -07:00
2014-07-13 21:39:25 -07:00
2014-07-14 18:33:54 -07:00
2014-07-16 13:17:09 -07:00
2014-07-11 21:59:21 -07:00
2014-06-26 15:47:02 -07:00
2014-06-26 15:47:02 -07:00
2014-06-26 15:47:02 -07:00
2014-07-16 09:11:04 -07:00