From d7df97e8f611b7c35b8a072c585b7d8d19aa5a77 Mon Sep 17 00:00:00 2001 From: jaseg Date: Fri, 5 Jul 2024 12:37:48 +0200 Subject: Improve svg-flatten document scale error messages --- svg-flatten/src/svg_doc.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'svg-flatten/src/svg_doc.cpp') 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; -- cgit