aboutsummaryrefslogtreecommitdiff
path: root/svg-flatten/src/svg_doc.cpp
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2023-03-29 18:23:56 +0200
committerjaseg <git@jaseg.de>2023-03-29 18:23:56 +0200
commiteb7107a8c6025399ce7c41a3f0f4ae7d40861b32 (patch)
tree52853deaffa0f8579563e41e72ebb5f611ca817c /svg-flatten/src/svg_doc.cpp
parent454d587d795aef529c04d6c250219ed288f02228 (diff)
downloadgerbolyze-eb7107a8c6025399ce7c41a3f0f4ae7d40861b32.tar.gz
gerbolyze-eb7107a8c6025399ce7c41a3f0f4ae7d40861b32.tar.bz2
gerbolyze-eb7107a8c6025399ce7c41a3f0f4ae7d40861b32.zip
svg-flatten: Fix incorrect polarity for outlined strokes
Diffstat (limited to 'svg-flatten/src/svg_doc.cpp')
-rw-r--r--svg-flatten/src/svg_doc.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/svg-flatten/src/svg_doc.cpp b/svg-flatten/src/svg_doc.cpp
index 6cb6138..47e73ee 100644
--- a/svg-flatten/src/svg_doc.cpp
+++ b/svg-flatten/src/svg_doc.cpp
@@ -530,9 +530,9 @@ void gerbolyze::SVGDocument::export_svg_path(RenderContext &ctx, const pugi::xml
Paths s_polys;
dehole_polytree(ptree, s_polys);
ctx.mat().doc2phys_clipper(s_polys);
- /* color has alredy been pushed above. */
+ /* color has already been pushed above. */
//cerr << " sinking " << s_polys.size() << " paths" << endl;
- ctx.sink() << ApertureToken() << s_polys;
+ ctx.sink() << (stroke_color == GRB_DARK ? GRB_POL_DARK : GRB_POL_CLEAR) << ApertureToken() << s_polys;
}
}
}