mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Picture handling: adjust timestamp after it's set
We need to first parse the exif and then adjust the timestamp. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
		
							parent
							
								
									380385d86f
								
							
						
					
					
						commit
						e7ecb690ed
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		
							
								
								
									
										4
									
								
								dive.c
									
										
									
									
									
								
							
							
						
						
									
										4
									
								
								dive.c
									
										
									
									
									
								
							|  | @ -2275,10 +2275,10 @@ struct picture *alloc_picture() | ||||||
| void dive_create_picture(struct dive *d, char *filename, int shift_time) | void dive_create_picture(struct dive *d, char *filename, int shift_time) | ||||||
| { | { | ||||||
| 	struct picture *p = alloc_picture(); | 	struct picture *p = alloc_picture(); | ||||||
| 	if (p->timestamp) |  | ||||||
| 		p->timestamp += shift_time; |  | ||||||
| 	p->filename = filename; | 	p->filename = filename; | ||||||
| 	picture_load_exif_data(p); | 	picture_load_exif_data(p); | ||||||
|  | 	if (p->timestamp) | ||||||
|  | 		p->timestamp += shift_time; | ||||||
| 	dive_add_picture(d, p); | 	dive_add_picture(d, p); | ||||||
| 	dive_set_geodata_from_picture(d, p); | 	dive_set_geodata_from_picture(d, p); | ||||||
| } | } | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue