mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 13:10:19 +00:00
Correct check for existence of DateTimeOriginal exif tag
Signed-off-by: Robert C. Helling <helling@atdotde.de> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
8f657ff775
commit
7e43a45293
1 changed files with 1 additions and 1 deletions
|
@ -239,7 +239,7 @@ time_t ShiftImageTimesDialog::epochFromExiv(EXIFInfo *exif)
|
|||
struct tm tm;
|
||||
int year, month, day, hour, min, sec;
|
||||
|
||||
if (strlen(exif->DateTime.c_str()))
|
||||
if (strlen(exif->DateTimeOriginal.c_str()))
|
||||
sscanf(exif->DateTimeOriginal.c_str(), "%d:%d:%d %d:%d:%d", &year, &month, &day, &hour, &min, &sec);
|
||||
else
|
||||
sscanf(exif->DateTime.c_str(), "%d:%d:%d %d:%d:%d", &year, &month, &day, &hour, &min, &sec);
|
||||
|
|
Loading…
Reference in a new issue