get types correctly

This commit is contained in:
sonora 2015-01-10 12:07:31 +01:00
parent 09e5c04a5b
commit 1c9e59a8cc

View file

@ -779,7 +779,10 @@ public class RoutingHelper {
//This should fix route-recalculation if settings change during ongoing calculation
clearCurrentRoute(finalLocation, intermediatePoints);
// Try re-initialize start point to check impact on Issue 2515
lastFixedLocation = TargetPoint.create(settings.getPointToStart(), settings.getStartPointDescription());
if (settings.getPointToStart() != null) {
lastFixedLocation.setLatitude(settings.getPointToStart().getLatitude());
lastFixedLocation.setLongitude(settings.getPointToStart().getLongitude());
}
recalculateRouteInBackground(true, lastFixedLocation, finalLocation, intermediatePoints, currentGPXRoute, route, true, false);
}