fix wrap_repated_shapes for labels

This commit is contained in:
Jan Petykiewicz 2021-06-23 22:39:02 -07:00
parent 52c6634a25
commit dbee0027b2

View File

@ -618,9 +618,9 @@ class Pattern(LockableImpl, AnnotatableImpl, Mirrorable, metaclass=AutoSlots):
new_labels = [] new_labels = []
for label in pat.labels: for label in pat.labels:
if label.repetition is None: if label.repetition is None:
new_labels.append(shape) new_labels.append(label)
continue continue
pat.addsp(Pattern(name_func(pat, shape), labels=[label]), repetition=label.repetition) pat.addsp(Pattern(name_func(pat, label), labels=[label]), repetition=label.repetition)
label.repetition = None label.repetition = None
pat.labels = new_labels pat.labels = new_labels