summaryrefslogtreecommitdiffstats
path: root/qt-ui
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-08-26 16:36:30 -0300
committerGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-08-26 16:36:30 -0300
commit5ad4cfe8e22d41720ad6ea0d8dea77fdea5d3f2f (patch)
treecf733c859fe170d0bb779517cad66983db45ff1f /qt-ui
parent367fc6e1c30c4fdeb61e06f7755954141ac8348c (diff)
downloadsubsurface-5ad4cfe8e22d41720ad6ea0d8dea77fdea5d3f2f.tar.gz
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>
Diffstat (limited to 'qt-ui')
-rw-r--r--qt-ui/diveplanner.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/qt-ui/diveplanner.cpp b/qt-ui/diveplanner.cpp
index a5a8ca2f4..dc0b34617 100644
--- a/qt-ui/diveplanner.cpp
+++ b/qt-ui/diveplanner.cpp
@@ -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);