Skip to content
This repository has been archived by the owner on Jun 19, 2024. It is now read-only.

Commit

Permalink
Fix cairo matrix clone op to not use copy.copy
Browse files Browse the repository at this point in the history
For some reason, copy.copy would barf saying it can't deepcopy cairo
matrices.
  • Loading branch information
jaseg committed Jul 6, 2018
1 parent 7c20bd3 commit 1792439
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gerber/render/cairo_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ def _render_test_record(self, primitive, color):

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)

Expand Down

0 comments on commit 1792439

Please sign in to comment.