Merge remote-tracking branch 'origin/master'

This commit is contained in:
Weblate 2016-11-03 21:03:45 +01:00
commit 5129a4fa6f

View file

@ -343,7 +343,7 @@ public class MapMarkersHelper {
}
if (colorIndex == -1) {
if (sortedMapMarkers.size() > 0) {
colorIndex = (sortedMapMarkers.get(sortedMapMarkers.size() - 1).colorIndex + 1) % MAP_MARKERS_COLORS_COUNT;
colorIndex = (sortedMapMarkers.get(0).colorIndex + 1) % MAP_MARKERS_COLORS_COUNT;
} else {
colorIndex = 0;
}