Fix handling of stroke width under transformations
This commit is contained in:
parent
e8d7ca1d6c
commit
3fc628beec
1 changed files with 6 additions and 1 deletions
|
|
@ -231,10 +231,15 @@ void gerbolyze::SVGDocument::export_svg_path(const RenderSettings &rset, const p
|
|||
}
|
||||
|
||||
/* Load path from SVG path data and transform into document units. */
|
||||
PolyTree ptree;
|
||||
cairo_save(cr);
|
||||
apply_cairo_transform_from_svg(cr, node.attribute("transform").value());
|
||||
|
||||
PolyTree ptree;
|
||||
load_svg_path(cr, node, ptree);
|
||||
|
||||
double _y = 0;
|
||||
cairo_user_to_device_distance(cr, &stroke_width, &_y);
|
||||
|
||||
cairo_restore (cr);
|
||||
|
||||
Paths open_paths, closed_paths;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue