Merge pull request #718 from Bars107/master

Fixed issue with RoutePoints stroke.
This commit is contained in:
vshcherb 2014-06-26 14:46:10 +02:00
commit fd9cc5069f
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++) {