Merge remote-tracking branch 'origin/master'

This commit is contained in:
Weblate 2014-06-26 14:46:16 +02:00
commit 2dd489ac55
3 changed files with 7 additions and 3 deletions

View file

@ -2,7 +2,6 @@ package net.osmand.plus.routepointsnavigation;
import java.util.ArrayList;
import java.util.List;
import net.osmand.CallbackWithObject;
import net.osmand.data.LatLon;
import net.osmand.plus.GPXUtilities;

View file

@ -165,6 +165,11 @@ public class GPXLayer extends OsmandMapLayer implements ContextMenuLayer.IContex
for (List<WptPt> l : points) {
path.rewind();
paint.setPathEffect(routePoints ? pathEffect : null);
if (routePoints){
paint.setStrokeCap(Cap.BUTT);
} else {
paint.setStrokeCap(Cap.ROUND);
}
int startIndex = -1;
for (int i = 0; i < l.size(); i++) {