From: Robin Dunn Date: Wed, 18 Aug 2004 02:34:03 +0000 (+0000) Subject: Don't call wx.ThePenList X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/c9c4689547a0f0e9e3074a6db5ca6d7fe4e93d1f?ds=sidebyside Don't call wx.ThePenList git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28825 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/wxPython/wx/lib/ogl/_lines.py b/wxPython/wx/lib/ogl/_lines.py index 66e891cf7e..8b9c0fba77 100644 --- a/wxPython/wx/lib/ogl/_lines.py +++ b/wxPython/wx/lib/ogl/_lines.py @@ -1021,7 +1021,7 @@ class LineShape(Shape): # Problem with pen - if not a solid pen, does strange things # to the arrowhead. So make (get) a new pen that's solid. if self._pen and self._pen.GetStyle() != wx.SOLID: - solid_pen = wx.ThePenList().FindOrCreatePen(self._pen.GetColour(), 1, wx.SOLID) + solid_pen = wx.ThePenList.FindOrCreatePen(self._pen.GetColour(), 1, wx.SOLID) if solid_pen: dc.SetPen(solid_pen)