Update MapObject.java

This commit is contained in:
vshcherb 2021-04-20 10:35:39 +02:00 committed by GitHub
parent 87744e180b
commit 11ddc65409
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -184,7 +184,7 @@ public abstract class MapObject implements Comparable<MapObject> {
if (lang != null && lang.length() > 0) { if (lang != null && lang.length() > 0) {
if (lang.equals("en")) { if (lang.equals("en")) {
// for some objects like wikipedia, english name is stored 'name' tag // for some objects like wikipedia, english name is stored 'name' tag
if (Algorithms.isEmpty(enName)) { if (!Algorithms.isEmpty(enName)) {
return getEnName(transliterate); return getEnName(transliterate);
} }
} else { } else {