Let the DCOverlay hold a reference to the dc, so it won't be GC'ed too soon.

This commit is contained in:
Robin Dunn
2019-07-08 13:13:28 -07:00
parent 4d37e3e6c1
commit 1db178d3d1

View File

@@ -39,6 +39,9 @@ def run():
c = module.find('wxDCOverlay')
c.addPrivateCopyCtor()
for m in c.find('wxDCOverlay').all():
m.find('dc').keepReference = True
#-----------------------------------------------------------------