From 00eba99039d714d39e47363698687843b7731c19 Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Mon, 7 Oct 2013 16:49:56 -0700 Subject: [PATCH] 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 Signed-off-by: Dirk Hohndel --- qt-ui/profilegraphics.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);