close_path (ist einfacher so)
authormail <mail@joachim-breitner.de>
Fri, 27 Apr 2007 14:12:32 +0000 (14:12 +0000)
committermail <mail@joachim-breitner.de>
Fri, 27 Apr 2007 14:12:32 +0000 (14:12 +0000)
cairoboard.py

index fd5b3e4..2397f74 100644 (file)
@@ -248,8 +248,9 @@ class CairoBoard(gtk.DrawingArea):
         for island in card.islands:
             point = island[0]
             cr.move_to( *p2c[point] )
-            for point in island[1:] + island[0:1]:
+            for point in island[1:]:
                 cr.line_to( *p2c[point] )
+            cr.close_path()
             cr.stroke()
         
         # Border