Use self.GetCanvas() instead of just self.GetCanvas
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38357 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
6802574779
commit
9c6e3c5714
@ -1166,7 +1166,7 @@ class Shape(ShapeEvtHandler):
|
||||
"""Flash the shape."""
|
||||
if self.GetCanvas():
|
||||
dc = wx.ClientDC(self.GetCanvas())
|
||||
self.GetCanvas.PrepareDC(dc)
|
||||
self.GetCanvas().PrepareDC(dc)
|
||||
|
||||
dc.SetLogicalFunction(OGLRBLF)
|
||||
self.Draw(dc)
|
||||
|
Loading…
Reference in New Issue
Block a user