From 45314a0099786b2025bf80c4cc0978fc914d06c9 Mon Sep 17 00:00:00 2001 From: AndreaGuarracino Date: Mon, 18 Mar 2024 11:37:25 -0500 Subject: [PATCH] fix condition --- src/main.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 04bca92..b3d47e7 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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