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-08 12:42:51 -07:00
2014-07-10 19:59:54 -07:00
2014-07-10 19:59:54 -07:00
2014-07-11 10:44:41 -07:00
2014-06-01 15:42:32 -07:00
2014-06-01 15:42:32 -07:00