diff options
-rw-r--r-- | core/planner.c | 2 | ||||
-rw-r--r-- | profile-widget/profilewidget2.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/core/planner.c b/core/planner.c index 204958a7e..a5f0d36bc 100644 --- a/core/planner.c +++ b/core/planner.c @@ -284,7 +284,7 @@ static void create_dive_from_plan(struct diveplan *diveplan, struct dive *dive, } if (dp->divemode != type) { type = dp->divemode; - add_event(dc, lasttime, 8, 0, type, "modechange"); + add_event(dc, lasttime, SAMPLE_EVENT_BOOKMARK, 0, type, "modechange"); } /* Create sample */ diff --git a/profile-widget/profilewidget2.cpp b/profile-widget/profilewidget2.cpp index 1b74f9d88..43ebf0777 100644 --- a/profile-widget/profilewidget2.cpp +++ b/profile-widget/profilewidget2.cpp @@ -1653,7 +1653,7 @@ void ProfileWidget2::addDivemodeSwitch() QPointF scenePos = mapToScene(mapFromGlobal(action->data().toPoint())); for (i = 0; i < NUM_DIVEMODE; i++) if (gettextFromC::tr(divemode_text_ui[i]) == action->text()) - add_event(current_dc, lrint(timeAxis->valueAt(scenePos)), 8, 0, i, + add_event(current_dc, lrint(timeAxis->valueAt(scenePos)), SAMPLE_EVENT_BOOKMARK, 0, i, QT_TRANSLATE_NOOP("gettextFromC", "modechange")); invalidate_dive_cache(current_dive); mark_divelist_changed(true); |