Robert C. Helling a422957cd6 Use displayed_dc instead of current_dc
current_dc is a macro that determines the dive computer
based on the current dive number. When the planner is started
from an emtpy dive list, the dive number ends up being -1 and
that doesn't produce a valid dive computer. Use the divecomputer
of the displayed_dive instead. This is done via a macro that
can also be used in two other places. Without this patch, the
planner crashed when called on an empty dive list.

Signed-off-by: Robert C. Helling <helling@atdotde.de>
2017-10-19 14:57:02 -04:00
..
2017-10-14 04:32:50 -07:00
2017-10-01 23:58:55 +03:00
2017-04-29 13:32:55 -07:00
2017-04-29 13:32:55 -07:00
2017-10-19 14:57:02 -04:00
2017-10-18 23:19:13 +02:00
2017-04-29 13:32:55 -07:00
2017-05-26 15:52:04 -07:00
2017-08-26 12:15:43 -07:00
2017-04-29 13:32:55 -07:00
2017-04-29 13:32:55 -07:00
2017-10-08 19:41:54 +03:00
2017-04-29 13:32:55 -07:00
2017-05-26 15:44:36 -07:00
2017-07-19 06:21:23 -07:00
2017-08-29 06:49:44 -07:00
2017-08-29 06:49:44 -07:00
2017-04-29 13:32:55 -07:00
2017-09-14 07:33:55 +02:00
2017-04-29 13:32:55 -07:00
2017-04-29 13:32:55 -07:00
2017-10-04 08:05:09 -07:00
2017-04-29 13:32:55 -07:00
2017-07-17 16:50:03 -07:00
2017-04-29 13:32:55 -07:00
2017-04-29 13:32:55 -07:00