svg-flatten: fix patterns with offset clip path
This commit is contained in:
parent
5f33356f33
commit
446c5e5901
2 changed files with 13 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue