From: Robin Dunn Date: Thu, 12 May 2005 22:55:32 +0000 (+0000) Subject: Add line control points before the end point X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/180ebf90bce509d815724b5045ebcc59b9ef724c?ds=sidebyside Add line control points before the end point git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34033 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/wxPython/wx/lib/ogl/_lines.py b/wxPython/wx/lib/ogl/_lines.py index 5bfd6bd4e6..6b6e4cf59b 100644 --- a/wxPython/wx/lib/ogl/_lines.py +++ b/wxPython/wx/lib/ogl/_lines.py @@ -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."""