[PCB_Print] Added tolerance for small errors in page size

- PCBDraw seems to be creating pages with 297.022 mm instead of 297 mm
This commit is contained in:
Salvador E. Tropea 2023-02-14 07:33:55 -03:00
parent c65037be0b
commit 1823d3d3ce
1 changed files with 2 additions and 2 deletions

View File

@ -910,8 +910,8 @@ class PCB_PrintOptions(VariantOptions):
view_box = svg_kicad.root.get('viewBox')
view_box_elements = view_box.split(' ')
# This is the paper size using the SVG precision
paper_size_x = int(view_box_elements[2])
paper_size_y = int(view_box_elements[3])
paper_size_x = int(round(float(view_box_elements[2])))
paper_size_y = int(round(float(view_box_elements[3])))
# Compute the coordinates translation for mirror
transform = ''
if scale != 1.0 and scale: