Don't crash if the build volume is smaller than one arrange cell

Fixes Sentry issue CURA-M6.
This commit is contained in:
Ghostkeeper 2020-04-23 14:42:36 +02:00
parent 52b4e98056
commit 09ee9660ea
No known key found for this signature in database
GPG Key ID: D2A8871EE34EC59A

View File

@ -196,6 +196,7 @@ class Arrange:
start_idx = 0
else:
start_idx = 0
priority = 0
for priority in self._priority_unique_values[start_idx::step]:
tryout_idx = numpy.where(self._priority == priority)
for idx in range(len(tryout_idx[0])):