From 7e43a4529377cc54b36760978a55f6ee4de36a9f Mon Sep 17 00:00:00 2001 From: "Robert C. Helling" Date: Mon, 5 May 2014 11:34:51 +0200 Subject: [PATCH] Correct check for existence of DateTimeOriginal exif tag Signed-off-by: Robert C. Helling Signed-off-by: Dirk Hohndel --- qt-ui/simplewidgets.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qt-ui/simplewidgets.cpp b/qt-ui/simplewidgets.cpp index 7335f9aa0..8932baf15 100644 --- a/qt-ui/simplewidgets.cpp +++ b/qt-ui/simplewidgets.cpp @@ -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);