Skip to content

Commit

Permalink
fix condition
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreaGuarracino committed Mar 18, 2024
1 parent 24c454f commit 45314a0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -683,10 +683,8 @@ int main(int argc, char **argv) {
prec_i = i;
}
}
if (path_mapping.size() == 1 || prec_i != path_mapping.size() - 1) {
smoothed->create_path_handle(path_handle_2_name_and_length[prec_path].first);
path_handle_2_start_and_end_in_path_mapping[prec_path] = std::make_pair(prec_i, path_mapping.size() - 1);
}
smoothed->create_path_handle(path_handle_2_name_and_length[prec_path].first);
path_handle_2_start_and_end_in_path_mapping[prec_path] = std::make_pair(prec_i, path_mapping.size() - 1);
}

// then for each path, ensure that it's embedded in the graph by walking through
Expand Down

0 comments on commit 45314a0

Please sign in to comment.