Fix cairo matrix clone op to not use copy.copy

For some reason, copy.copy would barf saying it can't deepcopy cairo
matrices.
refactor
jaseg 2018-07-06 19:57:01 +02:00
rodzic 7c20bd3699
commit 17924398fa
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

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