Merge pull request #88 from jaseg/fixes

Fix cairo matrix clone op to not use copy.copy
This commit is contained in:
Hamilton Kibbe 2019-01-26 13:47:32 -05:00 committed by GitHub
commit 5d7def47f1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)