Skip to content

Commit

Permalink
Fix crash when arranging objects not fitting into the bed
Browse files Browse the repository at this point in the history
fixes #10278
fixes #10241
SPE-1637
  • Loading branch information
tamasmeszaros committed Apr 17, 2023
1 parent fb6dd33 commit 1ec13fe
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/slic3r/GUI/Jobs/ArrangeJob.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,10 @@ coord_t get_skirt_offset(const Plater* plater) {
// Try to subtract the skirt from the bed shape so we don't arrange outside of it.
if (plater->printer_technology() == ptFFF && plater->fff_print().has_skirt()) {
const auto& print = plater->fff_print();
skirt_inset = print.config().skirts.value * print.skirt_flow().width() +
print.config().skirt_distance.value;
if (!print.objects().empty()) {
skirt_inset = print.config().skirts.value * print.skirt_flow().width() +
print.config().skirt_distance.value;
}
}

return scaled(skirt_inset);
Expand Down

0 comments on commit 1ec13fe

Please sign in to comment.