diff options
Diffstat (limited to 'svg-flatten/src')
-rw-r--r-- | svg-flatten/src/out_gerber.cpp | 1 | ||||
-rw-r--r-- | svg-flatten/src/svg_doc.cpp | 4 |
2 files changed, 2 insertions, 3 deletions
diff --git a/svg-flatten/src/out_gerber.cpp b/svg-flatten/src/out_gerber.cpp index 4293d82..af84876 100644 --- a/svg-flatten/src/out_gerber.cpp +++ b/svg-flatten/src/out_gerber.cpp @@ -63,7 +63,6 @@ void SimpleGerberOutput::header_impl(d2p origin, d2p size) { } SimpleGerberOutput& SimpleGerberOutput::operator<<(const ApertureToken &ap) { - cerr << ap.m_size << " / " << m_current_aperture << endl; m_aperture_set = ap.m_has_aperture; if (!m_macro_aperture && ap.m_size == m_current_aperture) { diff --git a/svg-flatten/src/svg_doc.cpp b/svg-flatten/src/svg_doc.cpp index 6cb6138..47e73ee 100644 --- a/svg-flatten/src/svg_doc.cpp +++ b/svg-flatten/src/svg_doc.cpp @@ -530,9 +530,9 @@ void gerbolyze::SVGDocument::export_svg_path(RenderContext &ctx, const pugi::xml Paths s_polys; dehole_polytree(ptree, s_polys); ctx.mat().doc2phys_clipper(s_polys); - /* color has alredy been pushed above. */ + /* color has already been pushed above. */ //cerr << " sinking " << s_polys.size() << " paths" << endl; - ctx.sink() << ApertureToken() << s_polys; + ctx.sink() << (stroke_color == GRB_DARK ? GRB_POL_DARK : GRB_POL_CLEAR) << ApertureToken() << s_polys; } } } |