[PCB Print][Fixed] Realistic solder mask
- The scaled computed center for current tools needs values without rounding
This commit is contained in:
parent
2385013bdd
commit
3d8146b075
|
|
@ -930,8 +930,8 @@ class PCB_PrintOptions(VariantOptions):
|
||||||
view_box = svg_kicad.root.get('viewBox')
|
view_box = svg_kicad.root.get('viewBox')
|
||||||
view_box_elements = view_box.split(' ')
|
view_box_elements = view_box.split(' ')
|
||||||
# This is the paper size using the SVG precision
|
# This is the paper size using the SVG precision
|
||||||
paper_size_x = int(round(float(view_box_elements[2])))
|
paper_size_x = float(view_box_elements[2])
|
||||||
paper_size_y = int(round(float(view_box_elements[3])))
|
paper_size_y = float(view_box_elements[3])
|
||||||
# Compute the coordinates translation for mirror
|
# Compute the coordinates translation for mirror
|
||||||
transform = ''
|
transform = ''
|
||||||
if scale != 1.0 and scale:
|
if scale != 1.0 and scale:
|
||||||
|
|
@ -943,7 +943,7 @@ class PCB_PrintOptions(VariantOptions):
|
||||||
offset_y = GS.svg_round((bcy*scale-(paper_size_y/2.0))/scale)
|
offset_y = GS.svg_round((bcy*scale-(paper_size_y/2.0))/scale)
|
||||||
if mirror:
|
if mirror:
|
||||||
scale_x = -scale_x
|
scale_x = -scale_x
|
||||||
offset_x += round(paper_size_x/scale)
|
offset_x += paper_size_x/scale
|
||||||
transform = 'scale({},{}) translate({},{})'.format(scale_x, scale_y, -offset_x, -offset_y)
|
transform = 'scale({},{}) translate({},{})'.format(scale_x, scale_y, -offset_x, -offset_y)
|
||||||
else:
|
else:
|
||||||
if mirror:
|
if mirror:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue