summaryrefslogtreecommitdiff
path: root/gerbonara/gerber
diff options
context:
space:
mode:
authorIngo Becker <ingo@orgizm.net>2020-06-19 16:23:32 +0200
committerjaseg <git@jaseg.de>2021-06-13 15:07:54 +0200
commit83e498b8917e0b3287871c27a4acc95634acab2e (patch)
tree7cf3e881efbf167c4c4eaff72ca9df96f0b8d05c /gerbonara/gerber
parent4eb0e063bcd34c21b737023aa6ed5baed80658d1 (diff)
downloadgerbonara-83e498b8917e0b3287871c27a4acc95634acab2e.tar.gz
gerbonara-83e498b8917e0b3287871c27a4acc95634acab2e.tar.bz2
gerbonara-83e498b8917e0b3287871c27a4acc95634acab2e.zip
PT/PR165: Fix pycairo incompatibility
Diffstat (limited to 'gerbonara/gerber')
-rw-r--r--gerbonara/gerber/render/cairo_backend.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gerbonara/gerber/render/cairo_backend.py b/gerbonara/gerber/render/cairo_backend.py
index e1d1408..03366f6 100644
--- a/gerbonara/gerber/render/cairo_backend.py
+++ b/gerbonara/gerber/render/cairo_backend.py
@@ -23,7 +23,6 @@ except ImportError:
from operator import mul
import tempfile
-import copy
import os
from .render import GerberContext, RenderSettings
@@ -532,7 +531,8 @@ 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)
+ m = self._xform_matrix
+ matrix = cairo.Matrix(m.xx, m.yx, m.xy, m.yy, m.x0, m.y0)
layer = cairo.SVGSurface(None, size_in_pixels[0], size_in_pixels[1])
ctx = cairo.Context(layer)