add unit test for split submatch waypoints indices

This commit is contained in:
karenzshea
2018-01-15 18:38:14 +01:00
committed by Michael Krasnyk
parent cdad265d49
commit 181eff29c7
3 changed files with 58 additions and 0 deletions
+1
View File
@@ -120,6 +120,7 @@ class MatchAPI final : public RouteAPI
sub_matchings[matching_index.sub_matching_index]
.alternatives_count[matching_index.point_index];
// waypoint indices need to be adjusted if route legs were collapsed
// waypoint parameter assumes there is only one match object
if (!parameters.waypoints.empty())
{
if (tidy_result.was_waypoint[trace_index])