aboutsummaryrefslogtreecommitdiff
path: root/svg-flatten/src/out_scaler.cpp
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2022-06-20 19:37:33 +0200
committerjaseg <git@jaseg.de>2022-06-20 19:37:33 +0200
commitd3204b1edeb234591d5c65fbec993f2c2d16209e (patch)
treee342b6b2a69d2319c25f1685f877f07db5ba3296 /svg-flatten/src/out_scaler.cpp
parent2fc5d1d929a69c5cd617907e9c9030ad395289ad (diff)
downloadgerbolyze-d3204b1edeb234591d5c65fbec993f2c2d16209e.tar.gz
gerbolyze-d3204b1edeb234591d5c65fbec993f2c2d16209e.tar.bz2
gerbolyze-d3204b1edeb234591d5c65fbec993f2c2d16209e.zip
svg-flatten: Finish direct interpolation optimization
Diffstat (limited to 'svg-flatten/src/out_scaler.cpp')
-rw-r--r--svg-flatten/src/out_scaler.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/svg-flatten/src/out_scaler.cpp b/svg-flatten/src/out_scaler.cpp
index c6e624d..ab65ab0 100644
--- a/svg-flatten/src/out_scaler.cpp
+++ b/svg-flatten/src/out_scaler.cpp
@@ -50,7 +50,10 @@ PolygonScaler &PolygonScaler::operator<<(GerberPolarityToken pol) {
}
PolygonScaler &PolygonScaler::operator<<(const ApertureToken &tok) {
- m_sink << ApertureToken(tok.m_size * m_scale);
+ if (tok.m_has_aperture)
+ m_sink << ApertureToken(tok.m_size * m_scale);
+ else
+ m_sink << tok;
return *this;
}