Use elogate() to fixup geometry when merging steps, fixes #2424

This commit is contained in:
Patrick Niklaus 2016-05-20 00:30:44 +02:00
parent 89aa6b7881
commit f9f87f25d4
No known key found for this signature in database
GPG Key ID: E426891B5F978B1B

View File

@ -510,9 +510,7 @@ std::vector<RouteStep> postProcess(std::vector<RouteStep> steps)
{ {
// count intersections. We cannot use exit, since intersections can follow directly // count intersections. We cannot use exit, since intersections can follow directly
// after a roundabout // after a roundabout
steps[last_valid_instruction].intersections.insert( steps[last_valid_instruction] = elongate(steps[last_valid_instruction], step);
steps[last_valid_instruction].intersections.end(), step.intersections.begin(),
step.intersections.end());
step.maneuver.instruction = TurnInstruction::NO_TURN(); step.maneuver.instruction = TurnInstruction::NO_TURN();
} }
else if (!isSilent(instruction)) else if (!isSilent(instruction))