diff --git a/src/LayerPlan.cpp b/src/LayerPlan.cpp index c7467bf5fe..66723a14bf 100644 --- a/src/LayerPlan.cpp +++ b/src/LayerPlan.cpp @@ -2492,7 +2492,7 @@ void LayerPlan::writeGCode(GCodeExport& gcode) for (const auto& reversed_chunk : paths | ranges::views::enumerate | ranges::views::reverse | ranges::views::chunk_by( - [](const auto& path_a, const auto& path_b) + [](const auto&path_a, const auto&path_b) { return (! std::get<1>(path_a).isTravelPath()) || std::get<1>(path_b).isTravelPath(); }))