mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Use our macro for FP comparisons
I think that catches all the ones we missed (thanks clang -Wfloat-equal). Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
2bd2df0349
commit
6ea6a4305c
3 changed files with 8 additions and 8 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue