From b8b03648739a96b89beab82883afaef199e1db80 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sun, 21 Jun 2015 22:09:33 -0700 Subject: Prevent unintended integer division Signed-off-by: Dirk Hohndel --- qt-ui/profile/profilewidget2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qt-ui') 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(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. -- cgit v1.2.3-70-g09d2