From 1d16ff216ae67458999b54f0d8843187af681801 Mon Sep 17 00:00:00 2001 From: vshcherb Date: Fri, 15 Jan 2021 18:49:17 +0100 Subject: [PATCH] Update Building.java --- OsmAnd-java/src/main/java/net/osmand/data/Building.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/OsmAnd-java/src/main/java/net/osmand/data/Building.java b/OsmAnd-java/src/main/java/net/osmand/data/Building.java index de3d8d5148..ec96ee35d6 100644 --- a/OsmAnd-java/src/main/java/net/osmand/data/Building.java +++ b/OsmAnd-java/src/main/java/net/osmand/data/Building.java @@ -114,8 +114,11 @@ public class Building extends MapObject { int numB = Algorithms.extractFirstIntegerNumber(fname); int numT = numB; String sname = getName2(); - - if (getInterpolationType() == BuildingInterpolation.ALPHABETIC && num == numB) { + if (getInterpolationType() == BuildingInterpolation.ALPHABETIC) { + if (num != numB) { + // currently not supported + return -1; + } int hint = (int) hno.charAt(hno.length() - 1); int fch = (int) fname.charAt(fname.length() - 1); int sch = sname.charAt(sname.length() - 1);