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>
This commit is contained in:
Thiago Macieira 2013-10-07 16:49:56 -07:00 committed by Dirk Hohndel
parent 2627ea927d
commit 00eba99039

View file

@ -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);