Merge pull request #718 from Bars107/master
Fixed issue with RoutePoints stroke.
This commit is contained in:
commit
fd9cc5069f
3 changed files with 7 additions and 3 deletions
|
@ -251,7 +251,7 @@ public class GpxSelectionHelper {
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public SelectedGpxFile getSelectedCurrentRecordingTrack() {
|
public SelectedGpxFile getSelectedCurrentRecordingTrack() {
|
||||||
for (SelectedGpxFile s : selectedGPXFiles) {
|
for (SelectedGpxFile s : selectedGPXFiles) {
|
||||||
if (s.isShowCurrentTrack()) {
|
if (s.isShowCurrentTrack()) {
|
||||||
|
@ -260,7 +260,7 @@ public class GpxSelectionHelper {
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setGpxFileToDisplay(GPXFile... gpxs) {
|
public void setGpxFileToDisplay(GPXFile... gpxs) {
|
||||||
// special case for gpx current route
|
// special case for gpx current route
|
||||||
for(GPXFile gpx : gpxs) {
|
for(GPXFile gpx : gpxs) {
|
||||||
|
|
|
@ -2,7 +2,6 @@ package net.osmand.plus.routepointsnavigation;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import net.osmand.CallbackWithObject;
|
import net.osmand.CallbackWithObject;
|
||||||
import net.osmand.data.LatLon;
|
import net.osmand.data.LatLon;
|
||||||
import net.osmand.plus.GPXUtilities;
|
import net.osmand.plus.GPXUtilities;
|
||||||
|
|
|
@ -165,6 +165,11 @@ public class GPXLayer extends OsmandMapLayer implements ContextMenuLayer.IContex
|
||||||
for (List<WptPt> l : points) {
|
for (List<WptPt> l : points) {
|
||||||
path.rewind();
|
path.rewind();
|
||||||
paint.setPathEffect(routePoints ? pathEffect : null);
|
paint.setPathEffect(routePoints ? pathEffect : null);
|
||||||
|
if (routePoints){
|
||||||
|
paint.setStrokeCap(Cap.BUTT);
|
||||||
|
} else {
|
||||||
|
paint.setStrokeCap(Cap.ROUND);
|
||||||
|
}
|
||||||
int startIndex = -1;
|
int startIndex = -1;
|
||||||
|
|
||||||
for (int i = 0; i < l.size(); i++) {
|
for (int i = 0; i < l.size(); i++) {
|
||||||
|
|
Loading…
Reference in a new issue