summaryrefslogtreecommitdiff
path: root/gerber/render/cairo_backend.py
diff options
context:
space:
mode:
authorHamilton Kibbe <hamilton.kibbe@gmail.com>2019-01-26 13:47:32 -0500
committerGitHub <noreply@github.com>2019-01-26 13:47:32 -0500
commit5d7def47f1250d625d2f4d7bb4ea4c5380389b46 (patch)
treeaf5b20216efa15919dc2c7825c5e3d114ff44d91 /gerber/render/cairo_backend.py
parent7c20bd369911780b43dcd894e9c089e7b2cb51cb (diff)
parent17924398fa2fe55c933ce004c59c70c2a663f28a (diff)
downloadgerbonara-5d7def47f1250d625d2f4d7bb4ea4c5380389b46.tar.gz
gerbonara-5d7def47f1250d625d2f4d7bb4ea4c5380389b46.tar.bz2
gerbonara-5d7def47f1250d625d2f4d7bb4ea4c5380389b46.zip
Merge pull request #88 from jaseg/fixes
Fix cairo matrix clone op to not use copy.copy
Diffstat (limited to 'gerber/render/cairo_backend.py')
-rw-r--r--gerber/render/cairo_backend.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gerber/render/cairo_backend.py b/gerber/render/cairo_backend.py
index 0e3a721..b450be0 100644
--- a/gerber/render/cairo_backend.py
+++ b/gerber/render/cairo_backend.py
@@ -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)