subsurface/profile-widget
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
..
animationfunctions.cpp Add SPDX header to profile widgets 2017-04-29 13:32:55 -07:00
animationfunctions.h Add SPDX header to profile widgets 2017-04-29 13:32:55 -07:00
CMakeLists.txt Correctly handle SubsurfaceMobile 2016-01-08 08:04:24 -08:00
divecartesianaxis.cpp Add SPDX header to profile widgets 2017-04-29 13:32:55 -07:00
divecartesianaxis.h Add SPDX header to profile widgets 2017-04-29 13:32:55 -07:00
diveeventitem.cpp Add a icon for gaschange to Oxy with all green tank shoulder color 2017-10-18 06:47:44 -04:00
diveeventitem.h Add SPDX header to profile widgets 2017-04-29 13:32:55 -07:00
divelineitem.cpp Add SPDX header to profile widgets 2017-04-29 13:32:55 -07:00
divelineitem.h Add SPDX header to profile widgets 2017-04-29 13:32:55 -07:00
divepixmapitem.cpp Add SPDX header to profile widgets 2017-04-29 13:32:55 -07:00
divepixmapitem.h Add SPDX header to profile widgets 2017-04-29 13:32:55 -07:00
diveprofileitem.cpp Use displayed_dc instead of current_dc 2017-10-19 14:57:02 -04:00
diveprofileitem.h Add SPDX header to profile widgets 2017-04-29 13:32:55 -07:00
diverectitem.cpp Add SPDX header to profile widgets 2017-04-29 13:32:55 -07:00
diverectitem.h Add SPDX header to profile widgets 2017-04-29 13:32:55 -07:00
divetextitem.cpp Add SPDX header to profile widgets 2017-04-29 13:32:55 -07:00
divetextitem.h Add SPDX header to profile widgets 2017-04-29 13:32:55 -07:00
divetooltipitem.cpp Add SPDX header to profile widgets 2017-04-29 13:32:55 -07:00
divetooltipitem.h code cleanup: remove unimplemented classes and structs 2017-06-16 05:31:41 +09:00
profilewidget2.cpp Hide outdated gas name strings in profile in planner 2017-10-08 23:19:23 +02:00
profilewidget2.h code cleanup: remove unimplemented classes and structs 2017-06-16 05:31:41 +09:00
ruleritem.cpp Add SPDX header to profile widgets 2017-04-29 13:32:55 -07:00
ruleritem.h Add SPDX header to profile widgets 2017-04-29 13:32:55 -07:00
tankitem.cpp End tankbar at the correct end of the dive plot 2017-09-15 09:01:10 -07:00
tankitem.h Add SPDX header to profile widgets 2017-04-29 13:32:55 -07:00