From e2cb5060949905245b0b66366c6dd692928681a8 Mon Sep 17 00:00:00 2001 From: "Salvador E. Tropea" Date: Mon, 13 Feb 2023 11:19:42 -0300 Subject: [PATCH] [Worksheet][KiCad 7] Adapted for the new VECTOR2I --- kibot/kicad/worksheet.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/kibot/kicad/worksheet.py b/kibot/kicad/worksheet.py index a8302853..89d1ddc6 100644 --- a/kibot/kicad/worksheet.py +++ b/kibot/kicad/worksheet.py @@ -170,8 +170,8 @@ class WksLine(WksDrawing): def draw_line(e, p, st, en): s = PCB_SHAPE() s.SetShape(e.shape) - s.SetStart(st) - s.SetEnd(en) + s.SetStart(GS.p2v_k7(st)) + s.SetEnd(GS.p2v_k7(en)) s.SetWidth(e.line_width) s.SetLayer(p.layer) p.board.Add(s) @@ -298,8 +298,8 @@ class WksText(WksDrawing): for _ in range(e.repeat): s = PCB_TEXT(None) s.SetText(text) - s.SetPosition(pos) - s.SetTextSize(e.font.size) + s.SetPosition(GS.p2v_k7(pos)) + s.SetTextSize(GS.p2v_k7(e.font.size)) if e.font.bold: s.SetBold(True) thickness = round(e.font.line_width*2)