mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Make depth conversion work for negative depths
This is needed in the altitude pressure conversion as there negative altitudes are possible (for diving in the netherlands or the Dead Sea). Signed-off-by: Robert C. Helling <helling@atdotde.de>
This commit is contained in:
		
							parent
							
								
									af96ec5d04
								
							
						
					
					
						commit
						295b1b78d8
					
				
					 5 changed files with 13 additions and 9 deletions
				
			
		|  | @ -750,7 +750,7 @@ void ConfigureDiveComputerDialog::populateDeviceDetailsSuuntoVyper() | |||
| 	deviceDetails->lightEnabled = ui.lightCheckBox->isChecked(); | ||||
| 	deviceDetails->light = ui.lightSpinBox->value(); | ||||
| 	deviceDetails->alarmDepthEnabled = ui.alarmDepthCheckBox->isChecked(); | ||||
| 	deviceDetails->alarmDepth = units_to_depth(ui.alarmDepthDoubleSpinBox->value()); | ||||
| 	deviceDetails->alarmDepth = units_to_depth(ui.alarmDepthDoubleSpinBox->value()).mm; | ||||
| 	deviceDetails->alarmTimeEnabled = ui.alarmTimeCheckBox->isChecked(); | ||||
| 	deviceDetails->alarmTime = ui.alarmTimeSpinBox->value(); | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue