deal with typo in older versions of libraw

longtitude instead of longitude prior to libraw 0.20.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2024-09-10 13:59:38 -07:00 committed by Michael Keller
parent ffa49cfd34
commit 40c22f0fe9

View file

@ -552,7 +552,12 @@ static bool parseRaw(const char *fn, metadata *metadata)
metadata->timestamp = raw.imgdata.other.timestamp;
metadata->location.lat = degminsec_to_udeg(raw.imgdata.other.parsed_gps.latitude);
#if LIBRAW_MINOR_VERSION < 20
// what a funny typo in the structure...
metadata->location.lon = degminsec_to_udeg(raw.imgdata.other.parsed_gps.longtitude);
#else
metadata->location.lon = degminsec_to_udeg(raw.imgdata.other.parsed_gps.longitude);
#endif
return true;
}