Fix bug with wrong formed wires
authorlbessard
Thu, 05 Mar 2009 16:57:25 +0100
changeset 316 8c6589718ce7
parent 315 20e169c8efe9
child 317 bb25a8edd3e4
Fix bug with wrong formed wires
graphics/GraphicCommons.py
--- a/graphics/GraphicCommons.py	Thu Mar 05 16:56:30 2009 +0100
+++ b/graphics/GraphicCommons.py	Thu Mar 05 16:57:25 2009 +0100
@@ -1651,7 +1651,7 @@
                 if i < len(self.Points) - 2:
                     next = vector(self.Points[i + 1], self.Points[i + 2])
                     if next == segment or is_null_vector(add_vectors(segment, next)):
-                        self.Points.insert(i + 1, wx.Point(self.Points[i].x, self.Points[i].y))
+                        self.Points.insert(i + 1, wx.Point(self.Points[i + 1].x, self.Points[i + 1].y))
                 self.Segments.append(segment)
                 i += 1
             self.RefreshBoundingBox()