kopia lustrzana https://gitlab.com/gerbolyze/gerbonara
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
rodzic
7c20bd3699
commit
17924398fa
|
@ -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)
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue