diff options
author | Robert C. Helling <helling@atdotde.de> | 2014-05-05 11:34:51 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-05-05 08:16:16 -0700 |
commit | 7e43a4529377cc54b36760978a55f6ee4de36a9f (patch) | |
tree | fb3939a3151bd3310d4a10395fe4efa92ea50b31 /qt-ui/simplewidgets.cpp | |
parent | 8f657ff775ff2661350b6ed6c8f44165a0e22dbc (diff) | |
download | subsurface-7e43a4529377cc54b36760978a55f6ee4de36a9f.tar.gz |
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>
Diffstat (limited to 'qt-ui/simplewidgets.cpp')
-rw-r--r-- | qt-ui/simplewidgets.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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); |