aboutsummaryrefslogtreecommitdiff
path: root/svg-flatten
diff options
context:
space:
mode:
Diffstat (limited to 'svg-flatten')
-rw-r--r--svg-flatten/include/gerbolyze.hpp2
-rw-r--r--svg-flatten/src/out_gerber.cpp1
-rw-r--r--svg-flatten/src/svg_doc.cpp1
3 files changed, 3 insertions, 1 deletions
diff --git a/svg-flatten/include/gerbolyze.hpp b/svg-flatten/include/gerbolyze.hpp
index f91c966..d3757d2 100644
--- a/svg-flatten/include/gerbolyze.hpp
+++ b/svg-flatten/include/gerbolyze.hpp
@@ -31,7 +31,7 @@
namespace gerbolyze {
- constexpr char lib_version[] = "3.1.7";
+ constexpr char lib_version[] = "3.1.9";
typedef std::function<std::vector<d2p> *(double, double, double)> sampling_fun;
diff --git a/svg-flatten/src/out_gerber.cpp b/svg-flatten/src/out_gerber.cpp
index af84876..50b9f5b 100644
--- a/svg-flatten/src/out_gerber.cpp
+++ b/svg-flatten/src/out_gerber.cpp
@@ -52,6 +52,7 @@ void SimpleGerberOutput::header_impl(d2p origin, d2p size) {
if (pow(10, m_digits_int-1) < max(m_width, m_height)) {
cerr << "Warning: Input has bounding box too large for " << m_digits_int << "." << m_digits_frac << " gerber resolution!" << endl;
+ cerr << " Bounding box in gerber units: " << m_width << " x " << m_height << endl;
}
m_out << "%FSLAX" << m_digits_int << m_digits_frac << "Y" << m_digits_int << m_digits_frac << "*%" << endl;
diff --git a/svg-flatten/src/svg_doc.cpp b/svg-flatten/src/svg_doc.cpp
index 66ead95..00a837f 100644
--- a/svg-flatten/src/svg_doc.cpp
+++ b/svg-flatten/src/svg_doc.cpp
@@ -92,6 +92,7 @@ bool gerbolyze::SVGDocument::load(istream &in, double scale) {
if (fabs((vb_w / page_w) / (vb_h / page_h) - 1.0) > 0.001) {
cerr << "Warning: Document has different document unit scale in x and y direction! Output will likely be garbage!" << endl;
+ cerr << " Viewbox size " << vb_w << " x " << vb_h << ", document size " << page_w << " x " << page_h << " -> scale " << (vb_w/page_w) << " x " << (vb_h/page_h) << endl;
}
cerr << "Resulting page width " << page_w_mm << " mm x " << page_h_mm << " mm" << endl;