From 4bdbc32044827e6f28a0d4adf1a94c00d9fa1315 Mon Sep 17 00:00:00 2001 From: John Clark Date: Sun, 28 Jan 2024 23:27:44 -0500 Subject: [PATCH] Fixed return of bad reference to local variable from BedShapePanel::update_exclude_area() --- src/slic3r/GUI/BedShapeDialog.cpp | 2 +- src/slic3r/GUI/BedShapeDialog.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/slic3r/GUI/BedShapeDialog.cpp b/src/slic3r/GUI/BedShapeDialog.cpp index fcdbe45..08fc7f3 100644 --- a/src/slic3r/GUI/BedShapeDialog.cpp +++ b/src/slic3r/GUI/BedShapeDialog.cpp @@ -601,7 +601,7 @@ void BedShapePanel::update_shape() } //Y20 -const std::vector& BedShapePanel::update_exclude_area(ConfigOptionsGroupShp options_group) +const std::vector BedShapePanel::update_exclude_area(ConfigOptionsGroupShp options_group) { Vec2d exclude_max(Vec2d::Zero()); Vec2d exclude_min(Vec2d::Zero()); diff --git a/src/slic3r/GUI/BedShapeDialog.hpp b/src/slic3r/GUI/BedShapeDialog.hpp index 1f4d436..962821a 100644 --- a/src/slic3r/GUI/BedShapeDialog.hpp +++ b/src/slic3r/GUI/BedShapeDialog.hpp @@ -95,7 +95,7 @@ private: void set_exclude_area(const ConfigOptionPoints& points_0, const ConfigOptionPoints& points_1); void update_preview(); void update_shape(); - const std::vector& update_exclude_area(ConfigOptionsGroupShp options_group); + const std::vector update_exclude_area(ConfigOptionsGroupShp options_group); void load_stl(); void load_texture(); void load_model();