summaryrefslogtreecommitdiff
path: root/gerbonara/gerber/render
diff options
context:
space:
mode:
Diffstat (limited to 'gerbonara/gerber/render')
-rw-r--r--gerbonara/gerber/render/cairo_backend.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/gerbonara/gerber/render/cairo_backend.py b/gerbonara/gerber/render/cairo_backend.py
index 03366f6..cb2f37c 100644
--- a/gerbonara/gerber/render/cairo_backend.py
+++ b/gerbonara/gerber/render/cairo_backend.py
@@ -136,8 +136,10 @@ class GerberCairoContext(GerberContext):
is_svg = os.path.splitext(filename.lower())[1] == '.svg'
except:
is_svg = False
+
if verbose:
print('[Render]: Writing image to {}'.format(filename))
+
if is_svg:
self.surface.finish()
self.surface_buffer.flush()