graphics/GraphicCommons.py
changeset 316 8c6589718ce7
parent 296 919f72861bfb
child 321 5b37e16f7b2a
--- 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()