aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--profile-widget/profilewidget2.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/profile-widget/profilewidget2.cpp b/profile-widget/profilewidget2.cpp
index 7b6fb9b65..7113894a3 100644
--- a/profile-widget/profilewidget2.cpp
+++ b/profile-widget/profilewidget2.cpp
@@ -1829,8 +1829,6 @@ void ProfileWidget2::keyDownAction()
if (DiveHandler *handler = qgraphicsitem_cast<DiveHandler *>(i)) {
int row = handleIndex(handler);
divedatapoint dp = plannerModel->at(row);
- if (dp.depth.mm >= profileYAxis->maximum())
- continue;
dp.depth.mm += M_OR_FT(1, 5);
plannerModel->editStop(row, dp);
@@ -1894,8 +1892,6 @@ void ProfileWidget2::keyRightAction()
if (DiveHandler *handler = qgraphicsitem_cast<DiveHandler *>(i)) {
int row = handleIndex(handler);
divedatapoint dp = plannerModel->at(row);
- if (dp.time / 60.0 >= timeAxis->maximum())
- continue;
dp.time += 60;
plannerModel->editStop(row, dp);