Issue #6505 - (-) is not recognized in GPS format input - fixed

This commit is contained in:
madwasp79 2019-03-06 15:50:01 +02:00
parent 5348dffdae
commit ed8eebd086

View file

@ -199,7 +199,7 @@ public class LocationParser {
Double prevDouble = null;
for (int i = begin; i <= end; i++) {
Object o = i == end ? "" : all.get(i);
if(o.equals("S") || o.equals("W")) {
if(o.equals("S") || o.equals("W") || o.equals(-0.0)) {
neg = !neg;
}
if (prevDouble != null) {