Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGonzalo Odiard <godiard@gmail.com>2012-08-01 11:37:44 (GMT)
committer Gonzalo Odiard <godiard@gmail.com>2012-08-01 11:37:44 (GMT)
commit4ec8e6fcb88b174db69befdddfcff157f4b64908 (patch)
tree047d7e585c8a86fe365e1db49ffdc02667586345
parentf334ed5eb4a6cf4bf78e3ba49701d6fc8bfbca29 (diff)
Fix artifacts in circle and heart shapes
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
-rw-r--r--Desenho.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Desenho.py b/Desenho.py
index d7f08fa..b12dd83 100644
--- a/Desenho.py
+++ b/Desenho.py
@@ -500,6 +500,7 @@ class Desenho:
line_width = ctx.get_line_width()
ctx.save()
+ ctx.new_path()
ctx.translate(widget.oldx, widget.oldy)
ctx.scale(w, w)
ctx.move_to(0, 0)
@@ -539,6 +540,7 @@ class Desenho:
ctx.set_line_width(widget.tool['line size'])
line_width = ctx.get_line_width()
ctx.save()
+ ctx.new_path()
ctx.translate(x, y)
ctx.scale(dx, dy)
ctx.arc(0., 0., 1., 0., 2 * math.pi)