subsurface/desktop-widgets
Berthold Stoeger d061a54e3d planner: fix gas selection
The lambda that created the list of gases took a copy not a
reference of the planned dive. Of course, that never had its
gases updated. Ultimately this would crash, because this sent
an index of "-1" on change.

Fix by
1) Using a reference to the dive, not the copy
2) Catch an invalid "-1" index (by Michael Keller <github@ike.ch>)

Fixes #4188

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2024-05-12 13:23:21 +02:00
..
2015-10-30 10:36:49 -07:00
2024-01-20 09:38:22 -08:00
2020-01-24 09:51:02 -08:00
2020-03-19 08:37:59 -07:00
2024-05-12 13:23:21 +02:00
2017-11-30 23:14:46 -08:00
2017-11-30 23:14:46 -08:00
2017-11-30 23:14:46 -08:00
2015-10-30 10:36:49 -07:00
2024-01-07 16:01:55 -08:00
2017-11-30 23:14:46 -08:00