subsurface/desktop-widgets
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
..
2015-10-30 10:36:49 -07:00
2017-04-29 13:32:55 -07:00
2017-04-29 13:32:55 -07:00
2017-05-06 11:12:28 -07:00
2015-10-30 10:36:49 -07:00
2015-10-30 10:36:49 -07:00
2017-07-28 22:06:34 -07:00
2017-04-29 13:32:55 -07:00
2017-04-29 13:32:55 -07:00
2015-10-30 10:36:49 -07:00
2015-10-30 10:36:49 -07:00
2015-10-30 10:36:49 -07:00
2017-04-29 13:32:55 -07:00
2015-10-30 10:36:49 -07:00
2017-04-29 13:32:55 -07:00
2017-03-06 06:40:00 -08:00
2015-10-30 10:36:49 -07:00