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 a1247c4b15..0adacd411a 100644 --- a/OsmAnd-java/src/main/java/net/osmand/data/Building.java +++ b/OsmAnd-java/src/main/java/net/osmand/data/Building.java @@ -126,7 +126,7 @@ public class Building extends MapObject { return -1; } float res = ((float) hint - fch) / (((float) sch - fch)); - if (res > 1 || res < -1) { + if (res > 1 || res < 0) { return -1; } return res;