mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Fixed a bug where moving a handler would mess the planner
Fixed a bug where moving a handler would mess the planner by calculating invalid values to the planner on the model side. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
This commit is contained in:
parent
367fc6e1c3
commit
5ad4cfe8e2
1 changed files with 2 additions and 2 deletions
|
@ -637,8 +637,8 @@ void DivePlannerGraphics::mouseReleaseEvent(QMouseEvent* event)
|
|||
int pos = handles.indexOf(activeDraggedHandler);
|
||||
divedatapoint data = plannerModel->at(pos);
|
||||
|
||||
data.depth = rint(depthLine->valueAt(mappedPos));
|
||||
data.time = rint(timeLine->valueAt(mappedPos));
|
||||
data.depth = rint(depthLine->valueAt(mappedPos)) * 1000;
|
||||
data.time = rint(timeLine->valueAt(mappedPos)) * 60;
|
||||
|
||||
plannerModel->editStop(pos, data);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue