From c64e4b159f38ce4e59766a363687ad3170c04cc9 Mon Sep 17 00:00:00 2001 From: "Robert C. Helling" Date: Sun, 17 Jun 2018 13:41:06 +0200 Subject: Copy divemode to Replan this needs copying the divemode from the dive to the plan. Signed-off-by: Robert C. Helling --- profile-widget/profilewidget2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'profile-widget') diff --git a/profile-widget/profilewidget2.cpp b/profile-widget/profilewidget2.cpp index 4f86760d1..7570e4deb 100644 --- a/profile-widget/profilewidget2.cpp +++ b/profile-widget/profilewidget2.cpp @@ -996,7 +996,7 @@ void ProfileWidget2::mouseDoubleClickEvent(QMouseEvent *event) int minutes = lrint(timeAxis->valueAt(mappedPos) / 60); int milimeters = lrint(profileYAxis->valueAt(mappedPos) / M_OR_FT(1, 1)) * M_OR_FT(1, 1); - plannerModel->addStop(milimeters, minutes * 60, -1, 0, true); + plannerModel->addStop(milimeters, minutes * 60, -1, 0, true, UNDEF_COMP_TYPE); } } -- cgit v1.2.3-70-g09d2