summaryrefslogtreecommitdiff
path: root/gerber/render/cairo_backend.py
diff options
context:
space:
mode:
authorGarret Fick <garret@ficksworkshop.com>2015-12-02 12:44:30 +0800
committerGarret Fick <garret@ficksworkshop.com>2015-12-02 12:44:30 +0800
commitd69f50e0f62570a4c327cb8fe4f886f439196010 (patch)
tree571d519f91f4852b283d0f7a5ce7c61be4767b75 /gerber/render/cairo_backend.py
parent8eede187f3f644c4f8a0de0dc5825dc4c00c7b8f (diff)
downloadgerbonara-d69f50e0f62570a4c327cb8fe4f886f439196010.tar.gz
gerbonara-d69f50e0f62570a4c327cb8fe4f886f439196010.tar.bz2
gerbonara-d69f50e0f62570a4c327cb8fe4f886f439196010.zip
Make the hit accessible from the drawable Hit, fix crash with cario drawing rect
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 81c5ce4..4a0724f 100644
--- a/gerber/render/cairo_backend.py
+++ b/gerber/render/cairo_backend.py
@@ -124,7 +124,7 @@ class GerberCairoContext(GerberContext):
self.ctx.set_source_rgba(color[0], color[1], color[2], self.alpha)
self.ctx.set_operator(cairo.OPERATOR_OVER if (rectangle.level_polarity == "dark" and not self.invert) else cairo.OPERATOR_CLEAR)
self.ctx.set_line_width(0)
- self.ctx.rectangle(*ll,width=width, height=height)
+ self.ctx.rectangle(ll[0], ll[1], width, height)
self.ctx.fill()
def _render_obround(self, obround, color):