From 5ad4cfe8e22d41720ad6ea0d8dea77fdea5d3f2f Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Mon, 26 Aug 2013 16:36:30 -0300 Subject: 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 --- qt-ui/diveplanner.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'qt-ui/diveplanner.cpp') 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); -- cgit v1.2.3-70-g09d2