summaryrefslogtreecommitdiffstats
path: root/qt-ui
diff options
context:
space:
mode:
authorGravatar Thiago Macieira <thiago@macieira.org>2013-10-07 16:49:56 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-10-07 16:57:54 -0700
commit00eba99039d714d39e47363698687843b7731c19 (patch)
tree13e6bd7f27332de7d01dc380f3e0f869b5d366a1 /qt-ui
parent2627ea927d06f260f7ee08d8fc45718a28018395 (diff)
downloadsubsurface-00eba99039d714d39e47363698687843b7731c19.tar.gz
Compile without depending on the global MAX macro
There's a C++ way for it. And, for some reason, it wasn't defined on my MinGW build: qt-ui/profilegraphics.cpp:1006:57: error: 'MAX' was not declared in this sscope Signed-off-by: Thiago Macieira <thiago@macieira.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
-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 d19623a4a..9973af101 100644
--- a/qt-ui/profilegraphics.cpp
+++ b/qt-ui/profilegraphics.cpp
@@ -995,7 +995,7 @@ void ProfileGraphicsView::plot_depth_profile()
marker = 9144;
break; /* 30 ft */
}
- maxline = MAX(gc.pi.maxdepth + marker, maxdepth * 2 / 3);
+ maxline = qMax(gc.pi.maxdepth + marker, maxdepth * 2 / 3);
c = getColor(DEPTH_GRID);