aboutsummaryrefslogtreecommitdiff
path: root/svg-flatten
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2023-04-16 20:11:43 +0200
committerjaseg <git@jaseg.de>2023-04-16 20:11:43 +0200
commit384c91730756bf9ca07225e7d6d98b24af807028 (patch)
treeecd405eed88a9b9a22f56c9d0c9622640f11df69 /svg-flatten
parentac52ecdafc1ba95fbc8e32635cffebbe44c3dd1e (diff)
downloadgerbolyze-384c91730756bf9ca07225e7d6d98b24af807028.tar.gz
gerbolyze-384c91730756bf9ca07225e7d6d98b24af807028.tar.bz2
gerbolyze-384c91730756bf9ca07225e7d6d98b24af807028.zip
svg-flatten: Fix extraneous fill in SVG stroke output
Diffstat (limited to 'svg-flatten')
-rw-r--r--svg-flatten/src/out_svg.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/svg-flatten/src/out_svg.cpp b/svg-flatten/src/out_svg.cpp
index 5ec061c..3c0b23d 100644
--- a/svg-flatten/src/out_svg.cpp
+++ b/svg-flatten/src/out_svg.cpp
@@ -73,7 +73,7 @@ SimpleSVGOutput &SimpleSVGOutput::operator<<(const Polygon &poly) {
if (std::isnan(m_stroke_width)) {
m_out << "<path fill=\"" << m_current_color << "\" d=\"";
} else {
- m_out << "<path stroke=\"" << m_current_color << "\" stroke-width=\"" << m_stroke_width << "\" stroke-linejoin=\"round\" stroke-linecap=\"round\" d=\"";
+ m_out << "<path fill=\"none\" stroke=\"" << m_current_color << "\" stroke-width=\"" << m_stroke_width << "\" stroke-linejoin=\"round\" stroke-linecap=\"round\" d=\"";
}
m_out << "M " << setprecision(m_digits_frac) << (poly[0][0] + m_offset[0])