1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-30 22:51:16 +01:00

Fixed EXIF altitude handling

This commit is contained in:
Martin Tůma 2019-03-16 19:29:30 +01:00
parent e6cd7f8bfa
commit 010b983667

View File

@ -77,7 +77,7 @@ double EXIFParser::altitude(TIFFFile &file, const IFDEntry &alt,
return NAN;
return (altRef.type == TIFF_BYTE && altRef.count == 1 && altRef.offset)
? -num/(double)den : num/(double)den;
? -(num/(double)den) : num/(double)den;
}
double EXIFParser::coordinate(TIFFFile &file, const IFDEntry &ll) const