diff --git a/OsmAnd/src/net/osmand/plus/views/OsmandMapLayer.java b/OsmAnd/src/net/osmand/plus/views/OsmandMapLayer.java index 5e2255efe7..a3084832c3 100644 --- a/OsmAnd/src/net/osmand/plus/views/OsmandMapLayer.java +++ b/OsmAnd/src/net/osmand/plus/views/OsmandMapLayer.java @@ -165,6 +165,11 @@ public abstract class OsmandMapLayer { long intersection = MapAlgorithms.calculateIntersection(x, y, px, py, 0, w, h, 0); if (intersection != -1) { + if (pin && (i == 1)) { + cnt++; + path.moveTo(px, py); + start = true; + } px = (int) (intersection >> 32); py = (int) (intersection & 0xffffffff); draw = true;