From d389ce030b5d76828c9089046aa7b16fcd0f1e1a Mon Sep 17 00:00:00 2001 From: Alex Date: Fri, 22 Sep 2017 15:28:52 +0300 Subject: [PATCH] FIx line color --- OsmAnd/src/net/osmand/plus/views/MapMarkersLayer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/views/MapMarkersLayer.java b/OsmAnd/src/net/osmand/plus/views/MapMarkersLayer.java index 32f2c4c4c7..af440debc3 100644 --- a/OsmAnd/src/net/osmand/plus/views/MapMarkersLayer.java +++ b/OsmAnd/src/net/osmand/plus/views/MapMarkersLayer.java @@ -264,6 +264,7 @@ public class MapMarkersLayer extends OsmandMapLayer implements IContextMenuProvi float[] pos = new float[2]; pm.getPosTan(pm.getLength() / 2, pos, null); + lineAttrs.paint.setColor(colors[marker.colorIndex]); canvas.drawPath(linePath, lineAttrs.paint); float generalDist = (float) MapUtils.getDistance(myLoc.getLatitude(), myLoc.getLongitude(), marker.getLatitude(), marker.getLongitude()); @@ -284,7 +285,6 @@ public class MapMarkersLayer extends OsmandMapLayer implements IContextMenuProvi textAttrs.paint2.getTextBounds(distanceText, 0, distanceText.length(), bounds); float hOffset = pm.getLength() / 2 - bounds.width() / 2; - lineAttrs.paint.setColor(colors[marker.colorIndex]); if (locX >= markerX) { canvas.rotate(180, pos[0], pos[1]); canvas.drawTextOnPath(distanceText, linePath, hOffset, bounds.height() + VERTICAL_OFFSET, textAttrs.paint3);