diff options
author | jaseg <git@jaseg.de> | 2021-04-25 18:42:43 +0200 |
---|---|---|
committer | jaseg <git@jaseg.de> | 2021-04-25 18:42:43 +0200 |
commit | 5bb733e55948e9a4273ae0f7cee8e81e38c23206 (patch) | |
tree | 6b04b36b8df3f9da655db8b8764dfc3e95e33b55 /svg-flatten/src/vec_core.cpp | |
parent | 6eb2c967a05a698b3da81168bcbcdc8c8368b490 (diff) | |
download | gerbolyze-5bb733e55948e9a4273ae0f7cee8e81e38c23206.tar.gz gerbolyze-5bb733e55948e9a4273ae0f7cee8e81e38c23206.tar.bz2 gerbolyze-5bb733e55948e9a4273ae0f7cee8e81e38c23206.zip |
Fix pattern rendering and some xform bugs
Diffstat (limited to 'svg-flatten/src/vec_core.cpp')
-rw-r--r-- | svg-flatten/src/vec_core.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/svg-flatten/src/vec_core.cpp b/svg-flatten/src/vec_core.cpp index 6951e4f..aa4a1cc 100644 --- a/svg-flatten/src/vec_core.cpp +++ b/svg-flatten/src/vec_core.cpp @@ -170,8 +170,8 @@ void gerbolyze::VoronoiVectorizer::vectorize_image(xform2d &mat, const pugi::xml /* Set up target transform using SVG transform and x/y attributes */ xform2d local_xf(mat); - local_xf.transform(xform2d(node.attribute("transform").value())); local_xf.translate(x, y); + local_xf.transform(xform2d(node.attribute("transform").value())); double orig_rows = img.rows; double orig_cols = img.cols; |