Fix regression in sub-matching length check
This commit is contained in:
parent
c4f193b13e
commit
fd6c70afe1
@ -526,7 +526,7 @@ template <class DataFacadeT> class MapMatching final
|
|||||||
}
|
}
|
||||||
|
|
||||||
// matchings that only consist of one candidate are invalid
|
// matchings that only consist of one candidate are invalid
|
||||||
if (parent_timestamp_index - sub_matching_begin < 2)
|
if (parent_timestamp_index - sub_matching_begin + 1 < 2)
|
||||||
{
|
{
|
||||||
sub_matching_begin = sub_matching_end;
|
sub_matching_begin = sub_matching_end;
|
||||||
continue;
|
continue;
|
||||||
@ -554,6 +554,7 @@ template <class DataFacadeT> class MapMatching final
|
|||||||
reconstructed_indices.emplace_front(parent_timestamp_index, parent_candidate_index);
|
reconstructed_indices.emplace_front(parent_timestamp_index, parent_candidate_index);
|
||||||
if (reconstructed_indices.size() < 2)
|
if (reconstructed_indices.size() < 2)
|
||||||
{
|
{
|
||||||
|
sub_matching_begin = sub_matching_end;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user