mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
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:
parent
2627ea927d
commit
00eba99039
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue