mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
ffa49cfd34
commit
40c22f0fe9
1 changed files with 5 additions and 0 deletions
|
@ -552,7 +552,12 @@ static bool parseRaw(const char *fn, metadata *metadata)
|
||||||
|
|
||||||
metadata->timestamp = raw.imgdata.other.timestamp;
|
metadata->timestamp = raw.imgdata.other.timestamp;
|
||||||
metadata->location.lat = degminsec_to_udeg(raw.imgdata.other.parsed_gps.latitude);
|
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);
|
metadata->location.lon = degminsec_to_udeg(raw.imgdata.other.parsed_gps.longitude);
|
||||||
|
#endif
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue