summaryrefslogtreecommitdiffstats
path: root/planner.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-04-29 22:37:19 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-04-29 22:38:55 -0700
commitbcdd6192fe457c878128f07125b32144a3ebe6bd (patch)
treeddcd4e69554517e6f593bd80bc3c593844d511eb /planner.c
parent7eaa2c62c44c6b4b09f65ed5cbcfaef61e47d5d7 (diff)
downloadsubsurface-bcdd6192fe457c878128f07125b32144a3ebe6bd.tar.gz
Show translated event names in tooltip
In order for this to work we need to compare against the event type instead of the event name - which makes much more sense to do, anyway. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'planner.c')
-rw-r--r--planner.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/planner.c b/planner.c
index 16807c18b..c56f04639 100644
--- a/planner.c
+++ b/planner.c
@@ -12,6 +12,7 @@
#include "divelist.h"
#include "planner.h"
#include "gettext.h"
+#include "libdivecomputer/parser.h"
#define TIMESTEP 1 /* second */
#define DECOTIMESTEP 60 /* seconds. Unit of deco stop times */
@@ -263,7 +264,7 @@ struct dive *create_dive_from_plan(struct diveplan *diveplan)
/* Check for SetPoint change */
if (oldpo2 != po2) {
if (lasttime)
- add_event(dc, lasttime, 20, 0, po2, "SP change"); // SAMPLE_EVENT_PO2
+ add_event(dc, lasttime, SAMPLE_EVENT_PO2, 0, po2, "SP change");
oldpo2 = po2;
}