mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Save cylinder pressure from samples
If start and end cylinder pressure is not explicitly set for secondary
cylinders, we must store the start and end pressures from the
sample_{start,end} attribute. Faulty behavior is obvious at least when
importing Poseidon logs.
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
			
			
This commit is contained in:
		
							parent
							
								
									4ef35f0651
								
							
						
					
					
						commit
						763dfef315
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -177,8 +177,8 @@ static void save_cylinder_info(struct membuffer *b, struct dive *dive) | |||
| 		put_pressure(b, cylinder->type.workingpressure, " workpressure='", " bar'"); | ||||
| 		show_utf8(b, description, " description='", "'", 1); | ||||
| 		put_gasmix(b, &cylinder->gasmix); | ||||
| 		put_pressure(b, cylinder->start, " start='", " bar'"); | ||||
| 		put_pressure(b, cylinder->end, " end='", " bar'"); | ||||
| 		put_pressure(b, cylinder->start.mbar ? cylinder->start : cylinder->sample_start, " start='", " bar'"); | ||||
| 		put_pressure(b, cylinder->end.mbar ? cylinder->end : cylinder->sample_end, " end='", " bar'"); | ||||
| 		put_format(b, " />\n"); | ||||
| 	} | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue