From fdb07ea26ef1cb6732f7b6181c68d73f06200519 Mon Sep 17 00:00:00 2001 From: jaseg Date: Sat, 29 Apr 2023 12:15:55 +0200 Subject: Fix incorrect aperture macro outline primitive point count --- gerbonara/aperture_macros/primitive.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gerbonara') diff --git a/gerbonara/aperture_macros/primitive.py b/gerbonara/aperture_macros/primitive.py index 356da9f..38bd266 100644 --- a/gerbonara/aperture_macros/primitive.py +++ b/gerbonara/aperture_macros/primitive.py @@ -290,7 +290,7 @@ class Outline(Primitive): rotation = ConstantExpression(0) coords = ','.join(coord.to_gerber(unit) for coord in coords) - return f'{self.code},{self.exposure.to_gerber()},{len(self.coords)-1},{coords},{rotation.to_gerber()}' + return f'{self.code},{self.exposure.to_gerber()},{len(self.coords)//2-1},{coords},{rotation.to_gerber()}' def to_graphic_primitives(self, offset, rotation, variable_binding={}, unit=None, polarity_dark=True): with self.Calculator(self, variable_binding, unit) as calc: -- cgit