Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 528cff38 authored by Jonathan Klee's avatar Jonathan Klee
Browse files

Fix GPSLatitudeRef & GPSLongitudeRef value

Negative latitude & longitude values were considered positives,
ending up in wrong GPS positions.

Conversion from bytes to String was not working.

Removing the second null byte made us have the expected N, S, E and W
strings.
parent 7037ae6e
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -552,7 +552,8 @@ public class ExifTag {
        } else if (mValue instanceof String) {
            return (String) mValue;
        } else if (mValue instanceof byte[]) {
            return new String((byte[]) mValue, US_ASCII);
            byte[] firstByte = new byte[] { ((byte[])mValue)[0] };
            return new String(firstByte, US_ASCII);
        }
        return null;
    }