From bf9f2e1d21c8ab468c66ff0390f86b6dde98ce8d Mon Sep 17 00:00:00 2001 From: Alexander Sytnyk Date: Fri, 8 Sep 2017 11:34:41 +0300 Subject: [PATCH] Fix color --- OsmAnd/src/net/osmand/plus/MapMarkersHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/MapMarkersHelper.java b/OsmAnd/src/net/osmand/plus/MapMarkersHelper.java index dc8925b055..a03627a3bd 100644 --- a/OsmAnd/src/net/osmand/plus/MapMarkersHelper.java +++ b/OsmAnd/src/net/osmand/plus/MapMarkersHelper.java @@ -356,7 +356,7 @@ public class MapMarkersHelper { } if (colorIndex == -1) { if (mapMarkers.size() > 0) { - colorIndex = (mapMarkers.get(mapMarkers.size() - 1).colorIndex + 1) % MAP_MARKERS_COLORS_COUNT; + colorIndex = (mapMarkers.get(0).colorIndex + 1) % MAP_MARKERS_COLORS_COUNT; } else { colorIndex = 0; }