mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Use MAX_CYLINDERS consistently
Signed-off-by: Stefan Fuchs <sfuchs@gmx.de>
This commit is contained in:
		
							parent
							
								
									b17f1e2d30
								
							
						
					
					
						commit
						8212a923b2
					
				
					 2 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -106,7 +106,7 @@ void TabDiveStatistics::updateData()
 | 
			
		|||
	QString gasUsedString;
 | 
			
		||||
	volume_t vol;
 | 
			
		||||
	selectedDivesGasUsed(gasUsed);
 | 
			
		||||
	for (int j = 0; j < 20; j++) {
 | 
			
		||||
	for (int j = 0; j < MAX_CYLINDERS; j++) {
 | 
			
		||||
		if (gasUsed.isEmpty())
 | 
			
		||||
			break;
 | 
			
		||||
		QPair<QString, int> gasPair = gasUsed.last();
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -569,7 +569,7 @@ void MainTab::updateDiveInfo(bool clear)
 | 
			
		|||
		QString gasUsedString;
 | 
			
		||||
		volume_t vol;
 | 
			
		||||
		selectedDivesGasUsed(gasUsed);
 | 
			
		||||
		for (int j = 0; j < 20; j++) {
 | 
			
		||||
		for (int j = 0; j < MAX_CYLINDERS; j++) {
 | 
			
		||||
			if (gasUsed.isEmpty())
 | 
			
		||||
				break;
 | 
			
		||||
			QPair<QString, int> gasPair = gasUsed.last();
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue