Don't call wx.ThePenList
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28825 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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)
|
||||
|
||||
|
Reference in New Issue
Block a user