Added workaround for KiCad 5 SVG print
- The KiCad 6 bug was also in KiCad 5.
This commit is contained in:
parent
6b6d22afa8
commit
d4945e0189
|
|
@ -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)))
|
||||
|
|
|
|||
Loading…
Reference in New Issue