more protection for multiple wpt additions
This commit is contained in:
parent
003cc3df26
commit
05420acc04
1 changed files with 2 additions and 1 deletions
|
|
@ -550,7 +550,7 @@ public class RoutingEngine extends Thread {
|
|||
try {
|
||||
return tryFindTrack(refTracks, lastTracks);
|
||||
} catch (RoutingIslandException rie) {
|
||||
if (routingContext.useDynamicDistance) {
|
||||
if (routingContext.useDynamicDistance && !useNodePoints) {
|
||||
useNodePoints = true;
|
||||
boolean useNodeOne = true;
|
||||
if (extraWaypoints != null) useNodeOne = false;
|
||||
|
|
@ -590,6 +590,7 @@ public class RoutingEngine extends Thread {
|
|||
nUnmatched++;
|
||||
}
|
||||
}
|
||||
extraWaypoints = null;
|
||||
}
|
||||
if (lastTracks.length < waypoints.size()-1) {
|
||||
refTracks = new OsmTrack[waypoints.size()-1]; // used ways for alternatives
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue