]> git.saurik.com Git - wxWidgets.git/commitdiff
Add line control points before the end point
authorRobin Dunn <robin@alldunn.com>
Thu, 12 May 2005 22:55:32 +0000 (22:55 +0000)
committerRobin Dunn <robin@alldunn.com>
Thu, 12 May 2005 22:55:32 +0000 (22:55 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34033 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/wx/lib/ogl/_lines.py

index 5bfd6bd4e636d74d7b9d45aade1de533d7ab8c2f..6b6e4cf59be79d7c95e5edbb81259989f18e1d25 100644 (file)
@@ -310,7 +310,7 @@ class LineShape(Shape):
         line_y = (last_point[1] + second_last_point[1]) / 2.0
 
         point = wx.RealPoint(line_x, line_y)
-        self._lineControlPoints.insert(len(self._lineControlPoints), point)
+        self._lineControlPoints.insert(len(self._lineControlPoints)-1, point)
 
     def DeleteLineControlPoint(self):
         """Delete an arbitary point on the line."""