diff options
Diffstat (limited to 'qt-ui/diveplanner.cpp')
-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 d75e065b8..33cb80ff9 100644 --- a/qt-ui/diveplanner.cpp +++ b/qt-ui/diveplanner.cpp @@ -246,7 +246,7 @@ void DivePlannerGraphics::keyLeftAction() double xpos = timeLine->posAtValue((dp.time - 60) / 60); bool nextStep = false; Q_FOREACH(DiveHandler *h, handles) { - if (h->pos().x() == xpos) { + if (IS_FP_SAME(h->pos().x(), xpos)) { nextStep = true; break; } @@ -274,7 +274,7 @@ void DivePlannerGraphics::keyRightAction() double xpos = timeLine->posAtValue((dp.time + 60) / 60); bool nextStep = false; Q_FOREACH(DiveHandler *h, handles) { - if (h->pos().x() == xpos) { + if (IS_FP_SAME(h->pos().x(), xpos)) { nextStep = true; break; } |