From dbee0027b2a42ca6fa4a0006448c39dc063772f1 Mon Sep 17 00:00:00 2001 From: Jan Petykiewicz Date: Wed, 23 Jun 2021 22:39:02 -0700 Subject: [PATCH] fix wrap_repated_shapes for labels --- masque/pattern.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/masque/pattern.py b/masque/pattern.py index 030ca4f..92f17c4 100644 --- a/masque/pattern.py +++ b/masque/pattern.py @@ -618,9 +618,9 @@ class Pattern(LockableImpl, AnnotatableImpl, Mirrorable, metaclass=AutoSlots): new_labels = [] for label in pat.labels: if label.repetition is None: - new_labels.append(shape) + new_labels.append(label) 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 pat.labels = new_labels