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

Fix pycairo incompatibility #165

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions gerber/render/cairo_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@

from operator import mul
import tempfile
import copy
import os

from .render import GerberContext, RenderSettings
Expand Down Expand Up @@ -532,7 +531,8 @@ 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)
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)

Expand Down