fix node-based-graph-walker
This commit is contained in:
		
							parent
							
								
									463228d0bf
								
							
						
					
					
						commit
						a4264c7849
					
				| @ -32,7 +32,7 @@ void LengthLimitedCoordinateAccumulator::update(const NodeID from_node, | |||||||
|                                                 const NodeID /*to_node*/) |                                                 const NodeID /*to_node*/) | ||||||
| 
 | 
 | ||||||
| { | { | ||||||
|     const auto current_coordinates = |     auto current_coordinates = | ||||||
|         coordinate_extractor.GetForwardCoordinatesAlongRoad(from_node, via_edge); |         coordinate_extractor.GetForwardCoordinatesAlongRoad(from_node, via_edge); | ||||||
| 
 | 
 | ||||||
|     const auto length = util::coordinate_calculation::getLength( |     const auto length = util::coordinate_calculation::getLength( | ||||||
| @ -40,8 +40,8 @@ void LengthLimitedCoordinateAccumulator::update(const NodeID from_node, | |||||||
| 
 | 
 | ||||||
|     // in case we get too many coordinates, we limit them to our desired length
 |     // in case we get too many coordinates, we limit them to our desired length
 | ||||||
|     if (length + accumulated_length > max_length) |     if (length + accumulated_length > max_length) | ||||||
|         coordinate_extractor.TrimCoordinatesToLength(current_coordinates, |         current_coordinates = coordinate_extractor.TrimCoordinatesToLength( | ||||||
|                                                      max_length - accumulated_length); |             std::move(current_coordinates), max_length - accumulated_length); | ||||||
| 
 | 
 | ||||||
|     coordinates.insert(coordinates.end(), current_coordinates.begin(), current_coordinates.end()); |     coordinates.insert(coordinates.end(), current_coordinates.begin(), current_coordinates.end()); | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user