[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:
parent
c65037be0b
commit
1823d3d3ce
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in New Issue