From 1da5919d9133f09bdd112da592620564368fd103 Mon Sep 17 00:00:00 2001 From: jaseg Date: Sun, 3 Jul 2022 23:13:23 +0200 Subject: svg-flatten: fix dilation of new aperture tokens --- svg-flatten/src/out_dilater.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; } -- cgit