summaryrefslogtreecommitdiffstats
path: root/qt-ui
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-06-21 22:09:33 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-06-21 22:11:49 -0700
commitb8b03648739a96b89beab82883afaef199e1db80 (patch)
tree5874633cdb016574efc092b1e3c8fce3dcfbe424 /qt-ui
parent895d6e0000b824809a19d42aee0955df76af8c86 (diff)
downloadsubsurface-b8b03648739a96b89beab82883afaef199e1db80.tar.gz
Prevent unintended integer division
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
-rw-r--r--qt-ui/profile/profilewidget2.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/profile/profilewidget2.cpp b/qt-ui/profile/profilewidget2.cpp
index be09fc5ea..9d9bb076c 100644
--- a/qt-ui/profile/profilewidget2.cpp
+++ b/qt-ui/profile/profilewidget2.cpp
@@ -1692,7 +1692,7 @@ void ProfileWidget2::keyRightAction()
if (DiveHandler *handler = qgraphicsitem_cast<DiveHandler *>(i)) {
int row = handles.indexOf(handler);
divedatapoint dp = plannerModel->at(row);
- if (dp.time / 60 >= timeAxis->maximum())
+ if (dp.time / 60.0 >= timeAxis->maximum())
continue;
// don't overlap positions.