diff --git a/kibot/out_svg_pcb_print.py b/kibot/out_svg_pcb_print.py index 4f5f18f8..609afae7 100644 --- a/kibot/out_svg_pcb_print.py +++ b/kibot/out_svg_pcb_print.py @@ -22,12 +22,14 @@ class SVG_PCB_PrintOptions(Any_PCB_PrintOptions): """ Filename for the output SVG (%i=layers, %x=svg)""" self.enable_ki6_page_fix = True """ Enable workaround for KiCad 6 bug #11033 """ + self.enable_ki5_page_fix = True + """ Enable workaround for KiCad 5 bug """ super().__init__() self._expand_ext = 'svg' def run(self, output): super().run(output, svg=True) - if GS.ki6() and self.enable_ki6_page_fix: + if (GS.ki6() and self.enable_ki6_page_fix) or (GS.ki5() and self.enable_ki5_page_fix): # KiCad 6.0.2 bug: https://gitlab.com/kicad/code/kicad/-/issues/11033 o = self._parent out_files = o.get_targets(o.expand_dirname(os.path.join(GS.out_dir, o.dir)))