diff options
author | jaseg <git@jaseg.de> | 2022-07-03 23:13:23 +0200 |
---|---|---|
committer | jaseg <git@jaseg.de> | 2022-07-03 23:13:23 +0200 |
commit | 1da5919d9133f09bdd112da592620564368fd103 (patch) | |
tree | 517121338e4f69df54122f39026d51e61f0d4cab /svg-flatten/src/out_dilater.cpp | |
parent | dd0c1cb6329e287c30c86513e60dcdbc955a3f3c (diff) | |
download | gerbolyze-1da5919d9133f09bdd112da592620564368fd103.tar.gz gerbolyze-1da5919d9133f09bdd112da592620564368fd103.tar.bz2 gerbolyze-1da5919d9133f09bdd112da592620564368fd103.zip |
svg-flatten: fix dilation of new aperture tokens
Diffstat (limited to 'svg-flatten/src/out_dilater.cpp')
-rw-r--r-- | svg-flatten/src/out_dilater.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/svg-flatten/src/out_dilater.cpp b/svg-flatten/src/out_dilater.cpp index 4a259a9..b8e55e8 100644 --- a/svg-flatten/src/out_dilater.cpp +++ b/svg-flatten/src/out_dilater.cpp @@ -85,7 +85,10 @@ Dilater &Dilater::operator<<(const Polygon &poly) { } Dilater &Dilater::operator<<(const ApertureToken &ap) { - m_sink << ApertureToken(ap.m_size + 2*m_dilation); + if (ap.m_has_aperture) + m_sink << ApertureToken(ap.m_size + 2*m_dilation); + else + m_sink << ap; return *this; } |