mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-31 20:33:24 +00:00
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 <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
752724aa1e
commit
36f0ba9abe
1 changed files with 0 additions and 4 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue