mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Prevent unintended integer division
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
		
							parent
							
								
									895d6e0000
								
							
						
					
					
						commit
						b8b0364873
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -1692,7 +1692,7 @@ void ProfileWidget2::keyRightAction() | ||||||
| 		if (DiveHandler *handler = qgraphicsitem_cast<DiveHandler *>(i)) { | 		if (DiveHandler *handler = qgraphicsitem_cast<DiveHandler *>(i)) { | ||||||
| 			int row = handles.indexOf(handler); | 			int row = handles.indexOf(handler); | ||||||
| 			divedatapoint dp = plannerModel->at(row); | 			divedatapoint dp = plannerModel->at(row); | ||||||
| 			if (dp.time / 60 >= timeAxis->maximum()) | 			if (dp.time / 60.0 >= timeAxis->maximum()) | ||||||
| 				continue; | 				continue; | ||||||
| 
 | 
 | ||||||
| 			// don't overlap positions.
 | 			// don't overlap positions.
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue