From d4191a96b80b5f1128b3f4cb2752876e7e67a00b Mon Sep 17 00:00:00 2001 From: Joseph Lenox Date: Sat, 21 Jul 2018 22:07:09 -0500 Subject: [PATCH] Number of X is better done with < and not doing the -1 in C++ --- xs/src/libslic3r/PrintGCode.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xs/src/libslic3r/PrintGCode.cpp b/xs/src/libslic3r/PrintGCode.cpp index 6ed37b45a..075bf7215 100644 --- a/xs/src/libslic3r/PrintGCode.cpp +++ b/xs/src/libslic3r/PrintGCode.cpp @@ -501,7 +501,7 @@ PrintGCode::process_layer(size_t idx, const Layer* layer, const Points& copies) const auto& bbox {layer_slices_bb.at(i)}; return bbox.contains(point) && layer->slices.at(i).contour.contains(point); }}; - const auto n_slices {layer->slices.size() - 1}; + const auto n_slices {layer->slices.size()}; for (auto region_id = 0U; region_id < print.regions.size(); ++region_id) { }