summaryrefslogtreecommitdiffstats
path: root/qt-ui/profilegraphics.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-02-10 20:43:21 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-02-11 12:35:40 -0800
commit6ea6a4305c35f812985cb55dd32a1577d824fcfb (patch)
tree7ca3aebb72499f75c48bf0469139430d0c9bb820 /qt-ui/profilegraphics.cpp
parent2bd2df0349154b83f2125da70d4c581ac2c04534 (diff)
downloadsubsurface-6ea6a4305c35f812985cb55dd32a1577d824fcfb.tar.gz
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>
Diffstat (limited to 'qt-ui/profilegraphics.cpp')
-rw-r--r--qt-ui/profilegraphics.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/profilegraphics.cpp b/qt-ui/profilegraphics.cpp
index 65266d31e..14df03eb1 100644
--- a/qt-ui/profilegraphics.cpp
+++ b/qt-ui/profilegraphics.cpp
@@ -571,7 +571,7 @@ void ProfileGraphicsView::plot_pp_text()
QGraphicsLineItem *item = new QGraphicsLineItem(SCALEGC(0, m), SCALEGC(hpos, m));
QPen pen(defaultPen);
pen.setColor(c);
- if ( QString::number(m).toDouble() != QString::number(m).toInt()) {
+ if ( IS_FP_SAME(QString::number(m).toDouble(), QString::number(m).toInt())) {
pen.setStyle(Qt::DashLine);
pen.setWidthF(1.2);
}