From 7506fa8ac25fddaa0c46e045b90714f27d27c7d5 Mon Sep 17 00:00:00 2001 From: SoftFever Date: Mon, 6 Nov 2023 18:32:19 +0800 Subject: [PATCH] Fix vector too long issues --- src/libslic3r/GCode.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libslic3r/GCode.cpp b/src/libslic3r/GCode.cpp index a7531d46fc2..fa565cbe21f 100644 --- a/src/libslic3r/GCode.cpp +++ b/src/libslic3r/GCode.cpp @@ -2187,7 +2187,7 @@ void GCode::_do_export(Print& print, GCodeOutputStream &file, ThumbnailsGenerato bbox_wo_wt.merge(unscaled(objPtr->get_first_layer_bbox(data.area, data.layer_height, data.name))); } auto center = bbox_wo_wt.center(); - this->placeholder_parser().set("first_layer_center_no_wipe_tower", new ConfigOptionFloats(center.x(), center.y())); + this->placeholder_parser().set("first_layer_center_no_wipe_tower", new ConfigOptionFloats({center.x(), center.y()})); } bool activate_chamber_temp_control = false; auto max_chamber_temp = 0;