From 79ac6a59e4e3e517242e7485a6e6a15e34293d85 Mon Sep 17 00:00:00 2001 From: jan Date: Sun, 15 Apr 2018 15:25:38 -0700 Subject: [PATCH] Fix mirror axis in Pattern.mirror() --- masque/pattern.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/masque/pattern.py b/masque/pattern.py index f61ee4e..3256abb 100644 --- a/masque/pattern.py +++ b/masque/pattern.py @@ -359,7 +359,7 @@ class Pattern: :return: self """ for entry in self.shapes + self.subpatterns: - entry.offset[axis] *= -1 + entry.offset[axis - 1] *= -1 return self def mirror_elements(self, axis: int) -> 'Pattern':