diff options
author | Tomaz Canabrava <tcanabrava@kde.org> | 2013-08-26 16:36:30 -0300 |
---|---|---|
committer | Tomaz Canabrava <tcanabrava@kde.org> | 2013-08-26 16:36:30 -0300 |
commit | 5ad4cfe8e22d41720ad6ea0d8dea77fdea5d3f2f (patch) | |
tree | cf733c859fe170d0bb779517cad66983db45ff1f /qt-ui | |
parent | 367fc6e1c30c4fdeb61e06f7755954141ac8348c (diff) | |
download | subsurface-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.cpp | 4 |
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); |