diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-06-21 22:09:33 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-06-21 22:11:49 -0700 |
commit | b8b03648739a96b89beab82883afaef199e1db80 (patch) | |
tree | 5874633cdb016574efc092b1e3c8fce3dcfbe424 /qt-ui | |
parent | 895d6e0000b824809a19d42aee0955df76af8c86 (diff) | |
download | subsurface-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.cpp | 2 |
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. |