svg_tetraflexagon_editor: fix comment
[flexagon-toolkit.git] / src / svg_tetraflexagon_editor.py
index ce2794b..6b57160 100755 (executable)
@@ -63,8 +63,6 @@ class SvgwriteTetraflexagonDiagram(TetraflexagonDiagram):
                                                fill_color=(0.5, 0.5, 0.5, 0.2))
             self.backend.active_group = old_active_group
 
-            self.backend.active_group = old_active_group
-
         # Draw the normal template for squares
         for square in self.tetraflexagon.squares:
             self.draw_square_template(square)
@@ -99,7 +97,7 @@ class SvgwriteTetraflexagonDiagram(TetraflexagonDiagram):
 
         super(SvgwriteTetraflexagonDiagram, self).draw_tile_template(tile, cx, cy, theta)
 
-        # The tile outline in the active group's element is the only polygon
+        # The tile outline in the active group's element is the only rectangle
         # element, so get it and set its id so that it can be reused as
         # a clip-path
         for element in self.backend.active_group.elements:
@@ -114,6 +112,7 @@ class SvgwriteTetraflexagonDiagram(TetraflexagonDiagram):
 
         self.backend.active_group = old_active_group
 
+
 def main():
     width = 3508
     height = 2480