From 17924398fa2fe55c933ce004c59c70c2a663f28a Mon Sep 17 00:00:00 2001 From: jaseg Date: Fri, 6 Jul 2018 19:57:01 +0200 Subject: Fix cairo matrix clone op to not use copy.copy For some reason, copy.copy would barf saying it can't deepcopy cairo matrices. --- gerber/render/cairo_backend.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gerber') diff --git a/gerber/render/cairo_backend.py b/gerber/render/cairo_backend.py index 0e3a721..b450be0 100644 --- a/gerber/render/cairo_backend.py +++ b/gerber/render/cairo_backend.py @@ -532,7 +532,7 @@ class GerberCairoContext(GerberContext): def _new_render_layer(self, color=None, mirror=False): size_in_pixels = self.scale_point(self.size_in_inch) - matrix = copy.copy(self._xform_matrix) + matrix = cairo.Matrix() * self._xform_matrix layer = cairo.SVGSurface(None, size_in_pixels[0], size_in_pixels[1]) ctx = cairo.Context(layer) -- cgit