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-07-30 19:22:04 (GMT)
committer Gonzalo Odiard <godiard@gmail.com>2012-07-30 19:22:04 (GMT)
commitc160631e9c74ff5db4cc2a4ad86e6f391d0522a8 (patch)
tree7756e02e7b0e3fa8f57fecd3f22020127c628a89
parent4c3aa8e126080979dc81df5452f413ba4ea395fa (diff)
Improve the freeform close adding a point to the first position
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
-rw-r--r--Desenho.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Desenho.py b/Desenho.py
index d556f72..fb451a4 100644
--- a/Desenho.py
+++ b/Desenho.py
@@ -683,6 +683,7 @@ class Desenho:
self.points.append(coords)
else:
# close the polygon
+ self.points.append((first[0], first[1]))
self._draw_polygon(widget, False, fill, self.points)
widget.last = []
self.points = []