From 36f0ba9abed595885edf52c8db848da71fa30b11 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Tue, 26 Jan 2021 20:40:22 +0100 Subject: profile: don't check for stepping past maximum time / depth When moving a planner point with the cursor, nothing is wrong with extending the dive time by stepping beyond the current maximum. Same for depth. Signed-off-by: Berthold Stoeger --- profile-widget/profilewidget2.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'profile-widget') 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(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(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); -- cgit v1.2.3-70-g09d2