svg-flatten: fix patterns with offset clip path

This commit is contained in:
jaseg 2022-06-19 21:25:10 +02:00
parent 5f33356f33
commit 446c5e5901
2 changed files with 13 additions and 2 deletions

View file

@ -315,6 +315,14 @@ void gerbolyze::SVGDocument::export_svg_path(RenderContext &ctx, const pugi::xml
} else {
PolyTreeToPaths(ptree_fill, fill_paths);
cerr << "clip paths" << endl;
for (auto &p : fill_paths) {
cerr << " ";
for (auto &pt : p) {
cerr << "<" << pt.X << "," << pt.Y << "> ";
}
cerr << endl;
}
RenderContext local_ctx(ctx, xform2d(), fill_paths, true);
pattern->tile(local_ctx);
}