aboutsummaryrefslogtreecommitdiff
path: root/svg-flatten/src/svg_doc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'svg-flatten/src/svg_doc.cpp')
-rw-r--r--svg-flatten/src/svg_doc.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/svg-flatten/src/svg_doc.cpp b/svg-flatten/src/svg_doc.cpp
index e9c9dfc..0ae9b68 100644
--- a/svg-flatten/src/svg_doc.cpp
+++ b/svg-flatten/src/svg_doc.cpp
@@ -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;