mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +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;
 | 
							marker = 9144;
 | 
				
			||||||
		break;	/* 30 ft */
 | 
							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);
 | 
						c = getColor(DEPTH_GRID);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue