diff --git a/OsmAnd-java/src/net/osmand/render/RenderingRuleProperty.java b/OsmAnd-java/src/net/osmand/render/RenderingRuleProperty.java index e853a67026..3a09b9650e 100644 --- a/OsmAnd-java/src/net/osmand/render/RenderingRuleProperty.java +++ b/OsmAnd-java/src/net/osmand/render/RenderingRuleProperty.java @@ -295,14 +295,12 @@ public class RenderingRuleProperty { } } } else { - String ts = val.substring(0, k); - if (ts != null) { - int[] additionalTypes = obj.getAdditionalTypes(); - for (int i = 0; i < additionalTypes.length; i++) { - TagValuePair vp = obj.getMapIndex().decodeType(additionalTypes[i]); - if (vp != null && ts.equals(vp.tag)) { - return true; - } + String ts = val; + int[] additionalTypes = obj.getAdditionalTypes(); + for (int i = 0; i < additionalTypes.length; i++) { + TagValuePair vp = obj.getMapIndex().decodeType(additionalTypes[i]); + if (vp != null && ts.equals(vp.tag)) { + return true; } } }