From f09ef6f1172ca362c025048b45538c087cab0dc3 Mon Sep 17 00:00:00 2001 From: jaseg Date: Sat, 8 Jan 2022 21:50:48 +0100 Subject: Fix rotation tests --- gerbonara/gerber/graphic_objects.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gerbonara/gerber/graphic_objects.py') diff --git a/gerbonara/gerber/graphic_objects.py b/gerbonara/gerber/graphic_objects.py index d9736cf..81d68f3 100644 --- a/gerbonara/gerber/graphic_objects.py +++ b/gerbonara/gerber/graphic_objects.py @@ -40,7 +40,7 @@ class GerberObject: def rotate(self, rotation, cx=0, cy=0, unit='mm'): cx, cy = self._conv(cx, unit), self._conv(cy, unit) - return self._rotate(cx, cy) + self._rotate(rotation, cx, cy) def bounding_box(self, unit=None): bboxes = [ p.bounding_box for p in self.to_primitives(unit) ] -- cgit