diff options
author | Robert C. Helling <helling@atdotde.de> | 2015-10-20 09:56:01 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-10-20 17:11:04 +0900 |
commit | 27f706064fe287f5e8b941fae57f6dcf44122b34 (patch) | |
tree | 98794514f1f0cc8684ff2e42058b4a7ee171aec3 /INSTALL | |
parent | d0d8c12c8cbf05334708676800f8f5dbb13aea3f (diff) | |
download | subsurface-27f706064fe287f5e8b941fae57f6dcf44122b34.tar.gz |
Always make sure the planner starts with at least one cylinder
void DivePlannerPointsModel::setupCylinders() in diveplannermodel.cpp
handles setting up cylinders for the planner. If there is a current
dive, cylinders form that dive are copied. Otherwise the default
cylinder is added and lacking that a standard size cylinder.
If the current dive does not have any cylinders, we could end up
without cylinders. This patch adds a test for this case and delegates
to the other two sources of a cylinder in that case.
Signed-off-by: Robert C. Helling <helling@atdotde.de>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'INSTALL')
0 files changed, 0 insertions, 0 deletions