diff options
author | Thiago Macieira <thiago@macieira.org> | 2013-10-07 16:49:56 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-10-07 16:57:54 -0700 |
commit | 00eba99039d714d39e47363698687843b7731c19 (patch) | |
tree | 13e6bd7f27332de7d01dc380f3e0f869b5d366a1 /qt-ui | |
parent | 2627ea927d06f260f7ee08d8fc45718a28018395 (diff) | |
download | subsurface-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.cpp | 2 |
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); |