Dirk Hohndel
c0a6c136f0
Fix dive planner widget
...
In commit 0f50b73f9e88 ("Fix planner / add dive handling of DiveHandler
Points") some issues were introduced. While it is fine to remove the
artificial first point at the surface, the commit broke the special
handling for o2 == -1, i.e., the usual case where a default gas needs to
be picked.
This generalizes the algorithm previously used to also look to the right,
now that we are no longer guaranteed that there is a first point to our
left.
This also cleans up some whitespace damage introduced in the same commit.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2013-11-15 11:54:13 +09:00
..
2013-09-02 05:57:08 -03:00
2013-05-18 09:49:37 -07:00
2013-10-17 20:28:22 -07:00
2013-10-03 12:13:48 -07:00
2013-07-11 09:22:20 -03:00
2013-11-02 03:37:31 +01:00
2013-11-02 03:37:31 +01:00
2013-10-16 12:44:07 -07:00
2013-10-16 12:44:07 -07:00
2013-10-16 12:44:07 -07:00
2013-10-11 10:21:04 -03:00
2013-10-15 04:37:31 -07:00
2013-06-18 00:24:28 -07:00
2013-11-15 11:32:19 +09:00
2013-11-15 11:32:19 +09:00
2013-11-15 11:54:13 +09:00
2013-11-15 09:19:14 +09:00
2013-11-15 08:58:35 +09:00
2013-11-09 15:58:57 +09:00
2013-10-03 12:13:48 -07:00
2013-09-16 22:40:47 -03:00
2013-11-11 06:23:18 +09:00
2013-10-17 15:00:22 -07:00
2013-10-15 04:23:43 -07:00
2013-09-16 19:21:13 -03:00
2013-11-02 17:10:30 +01:00
2013-11-02 17:10:30 +01:00
2013-09-18 23:23:04 -03:00
2013-10-15 04:37:31 -07:00
2013-11-14 19:36:41 +09:00
2013-11-14 21:06:31 +09:00
2013-11-02 17:10:34 +01:00
2013-11-15 09:15:35 +09:00
2013-11-15 09:13:58 +09:00
2013-11-14 22:17:27 +09:00
2013-11-15 09:19:14 +09:00
2013-10-15 09:49:12 -07:00
2013-11-15 09:21:05 +09:00
2013-11-15 09:21:05 +09:00
2013-04-13 20:44:02 -07:00
2013-04-13 20:44:02 -07:00
2013-11-15 06:06:57 +09:00
2013-10-14 13:14:09 -07:00
2013-11-15 06:06:57 +09:00
2013-10-15 04:24:15 -07:00
2013-07-10 19:27:10 +03:00
2013-10-16 07:02:06 -07:00
2013-10-15 04:24:27 -07:00
2013-10-03 12:13:48 -07:00
2013-10-03 12:13:48 -07:00
2013-07-10 10:50:33 +03:00
2013-11-07 16:52:39 +09:00
2013-11-01 09:33:39 -04:00
2013-10-01 09:47:33 -07:00
2013-10-11 10:21:04 -03:00
2013-10-03 15:45:06 -07:00
2013-05-22 21:31:45 -07:00
2013-06-19 10:20:56 -07:00
2013-10-24 23:02:59 -02:00
2013-10-24 22:52:11 -02:00
2013-11-13 11:58:47 +09:00
2013-11-13 11:58:47 +09:00
2013-09-26 20:35:30 -03:00
2013-11-07 16:32:23 +09:00
2013-11-02 17:10:34 +01:00
2013-10-24 22:30:21 -02:00