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-10 13:49:31 (GMT)
commita992c068235df3a7c0616d0dd716e0a4384453c2 (patch)
tree3e1ef4dcbcdcff88738168295a170aa083c0dc09
parent678054c7545e6eeee0bab68a8d2b250fd3d76bfd (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)