diff --git a/src/skidl/tools/kicad6/gen_svg.py b/src/skidl/tools/kicad6/gen_svg.py index cdbd8fe5..14822866 100644 --- a/src/skidl/tools/kicad6/gen_svg.py +++ b/src/skidl/tools/kicad6/gen_svg.py @@ -302,7 +302,6 @@ def text_bbox(text, start, dir, char_wid, char_hgt): text = shape["misc"][1] svg = text_to_svg(text, side, start, char_wid, class_, attr) bbox = text_bbox(text, start, (end-start).norm, char_wid, char_hgt) - # svg += bbox_to_svg(bbox, 0.1) elif shape_type == "pin": num_char_wid, num_char_hgt = shape["number"]["effects"]["font"]["size"][:] @@ -338,7 +337,7 @@ def text_bbox(text, start, dir, char_wid, char_hgt): start -= dir * extension end *= tx start *= tx - side = pin_side(end-start) + side = pin_side(dir * tx) # Bounding box for the pin. bbox = BBox(start, end) diff --git a/tests/unit_tests/setup_teardown.py b/tests/unit_tests/setup_teardown.py index 14b11972..551bd4c3 100644 --- a/tests/unit_tests/setup_teardown.py +++ b/tests/unit_tests/setup_teardown.py @@ -40,7 +40,7 @@ def setup_function(f): skidl.config.query_backup_lib = True # Set the default tool for the test suite. - tool = KICAD8 + tool = KICAD6 set_default_tool(tool)