From 010b983667082a47ec24790cd8afe20edf7accef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Sat, 16 Mar 2019 19:29:30 +0100 Subject: [PATCH] Fixed EXIF altitude handling --- src/data/exifparser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/data/exifparser.cpp b/src/data/exifparser.cpp index 18bff92f..0314517c 100644 --- a/src/data/exifparser.cpp +++ b/src/data/exifparser.cpp @@ -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