summaryrefslogtreecommitdiffstats
path: root/profile-widget
diff options
context:
space:
mode:
authorGravatar Robert C. Helling <helling@atdotde.de>2018-06-17 13:41:06 +0200
committerGravatar Robert C. Helling <helling@atdotde.de>2018-06-24 09:35:55 +0200
commitc64e4b159f38ce4e59766a363687ad3170c04cc9 (patch)
tree3face69a5fc22a649b8bd1e8de9ee52612fd27bf /profile-widget
parent2eb7c2e23f97e88ee85d56f5a9945e7959423a88 (diff)
downloadsubsurface-c64e4b159f38ce4e59766a363687ad3170c04cc9.tar.gz
Copy divemode to Replan
this needs copying the divemode from the dive to the plan. Signed-off-by: Robert C. Helling <helling@atdotde.de>
Diffstat (limited to 'profile-widget')
-rw-r--r--profile-widget/profilewidget2.cpp2
1 files changed, 1 insertions, 1 deletions
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);
}
}