Fixed crash when pressing 'A' with empty print bed
This commit is contained in:
parent
3deeda0f73
commit
cb486522a8
1 changed files with 4 additions and 0 deletions
|
@ -269,6 +269,10 @@ TriangleMesh Model::mesh() const
|
||||||
|
|
||||||
static bool _arrange(const Pointfs &sizes, coordf_t dist, const BoundingBoxf* bb, Pointfs &out)
|
static bool _arrange(const Pointfs &sizes, coordf_t dist, const BoundingBoxf* bb, Pointfs &out)
|
||||||
{
|
{
|
||||||
|
if (sizes.empty())
|
||||||
|
// return if the list is empty or the following call to BoundingBoxf constructor will lead to a crash
|
||||||
|
return true;
|
||||||
|
|
||||||
// we supply unscaled data to arrange()
|
// we supply unscaled data to arrange()
|
||||||
bool result = Slic3r::Geometry::arrange(
|
bool result = Slic3r::Geometry::arrange(
|
||||||
sizes.size(), // number of parts
|
sizes.size(), // number of parts
|
||||||
|
|
Loading…
Add table
Reference in a new issue