From 55086c5defc0d95193db35c7603e51190a0a8896 Mon Sep 17 00:00:00 2001 From: "Salvador E. Tropea" Date: Tue, 14 Feb 2023 12:29:38 -0300 Subject: [PATCH] [Worksheet] Adapted polypoints to v7 arguments --- kibot/kicad/worksheet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kibot/kicad/worksheet.py b/kibot/kicad/worksheet.py index 89d1ddc6..5587ee0c 100644 --- a/kibot/kicad/worksheet.py +++ b/kibot/kicad/worksheet.py @@ -377,7 +377,7 @@ class WksPolygon(WksDrawing): s.SetShape(SHAPE_T_POLY) if hasattr(s, 'SetFillMode'): s.SetFillMode(FILL_T_FILLED_SHAPE) - s.SetPolyPoints([pos+p for p in pts]) + s.SetPolyPoints([GS.p2v_k7(pos+p) for p in pts]) s.SetWidth(e.line_width) s.SetLayer(p.layer) if e.rotate: