From 1f841ad71b9b43cf304649d45a5cdb8524751349 Mon Sep 17 00:00:00 2001 From: jaseg Date: Wed, 26 Apr 2023 00:35:37 +0200 Subject: Fix last failing tests. Rerun pending. --- gerbonara/apertures.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gerbonara/apertures.py') diff --git a/gerbonara/apertures.py b/gerbonara/apertures.py index 415eeee..feccb7f 100644 --- a/gerbonara/apertures.py +++ b/gerbonara/apertures.py @@ -387,14 +387,14 @@ class ObroundAperture(Aperture): if self.w > self.h: inst = self else: - inst = replace(self, w=self.h, h=self.w, **self._rotate_hole_90(), rotation=rotation+self.rotation-90) + inst = replace(self, w=self.h, h=self.w, **self._rotate_hole_90(), rotation=self.rotation-math.pi/2) return ApertureMacroInstance(GenericMacros.obround, [MM(inst.w, self.unit), MM(inst.h, self.unit), MM(inst.hole_dia, self.unit) or 0, MM(inst.hole_rect_h, self.unit) or 0, - inst.rotation]) + inst.rotation + rotation]) def _params(self, unit=None): return _strip_right( -- cgit