mirror of
https://github.com/QIDITECH/QIDISlicer.git
synced 2026-01-30 23:48:44 +03:00
Merge pull request #34 from clarkjc/bugfix/bad-reference
BedShapePanel::update_exclude_area() returns a reference to a std::vector<Vec2d> that has already been destroyed
This commit is contained in:
@@ -601,7 +601,7 @@ void BedShapePanel::update_shape()
|
|||||||
}
|
}
|
||||||
|
|
||||||
//Y20
|
//Y20
|
||||||
const std::vector<Vec2d>& BedShapePanel::update_exclude_area(ConfigOptionsGroupShp options_group)
|
const std::vector<Vec2d> BedShapePanel::update_exclude_area(ConfigOptionsGroupShp options_group)
|
||||||
{
|
{
|
||||||
Vec2d exclude_max(Vec2d::Zero());
|
Vec2d exclude_max(Vec2d::Zero());
|
||||||
Vec2d exclude_min(Vec2d::Zero());
|
Vec2d exclude_min(Vec2d::Zero());
|
||||||
|
|||||||
@@ -95,7 +95,7 @@ private:
|
|||||||
void set_exclude_area(const ConfigOptionPoints& points_0, const ConfigOptionPoints& points_1);
|
void set_exclude_area(const ConfigOptionPoints& points_0, const ConfigOptionPoints& points_1);
|
||||||
void update_preview();
|
void update_preview();
|
||||||
void update_shape();
|
void update_shape();
|
||||||
const std::vector<Vec2d>& update_exclude_area(ConfigOptionsGroupShp options_group);
|
const std::vector<Vec2d> update_exclude_area(ConfigOptionsGroupShp options_group);
|
||||||
void load_stl();
|
void load_stl();
|
||||||
void load_texture();
|
void load_texture();
|
||||||
void load_model();
|
void load_model();
|
||||||
|
|||||||
Reference in New Issue
Block a user