From 2b775d5be6e0132d63383b611478d4a7f2d9f53e Mon Sep 17 00:00:00 2001 From: reger Date: Sun, 25 Oct 2015 19:38:42 +0100 Subject: [PATCH] fix typo in WikiCode coordinate calculation --- source/net/yacy/data/wiki/WikiCode.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/net/yacy/data/wiki/WikiCode.java b/source/net/yacy/data/wiki/WikiCode.java index 44c84149b..4459b0640 100644 --- a/source/net/yacy/data/wiki/WikiCode.java +++ b/source/net/yacy/data/wiki/WikiCode.java @@ -1061,7 +1061,7 @@ public class WikiCode extends AbstractWikiParser implements WikiParser { if (d.length == 1) {float l = Float.parseFloat(d[0]); if (l < 0) {lono = "W"; l = -l;} lon = (float) Math.floor(l); lonm = 60.0f * (l - lon);} else if (d.length == 2) {lon = Float.parseFloat(d[0]); lonm = Float.parseFloat(d[1]);} else if (d.length == 3) {lon = Float.parseFloat(d[0]); lonm = Float.parseFloat(d[1]) + Float.parseFloat(d[2]) / 60.0f;} - if (d[d.length-1].toUpperCase().equals("w")) {lon = -lon; lonm = -lonm;} + if (d[d.length-1].toUpperCase().equals("W")) {lon = -lon; lonm = -lonm;} } } if (lon != 0.0d && lat != 0.0d) {