Comment 1 for bug 386638

Revision history for this message
Stani (stani) wrote : Re: Color to Alpha action - Select Color By field crashes app

Hi Juho, I can't reproduce this. Could you attach an action list and an example image? Also exactly describe the steps to reproduce as this might be dependent on what you did before as it doesn't reproduce out of the box. I try a possible fix as well and push it upstream. So try again.

$ bzr commit -m "avoid dead object"
Committing to: /home/stani/sync/python/phatch/trunk/
modified phatch/pyWx/lib/popup.py
Committed revision 767.

$ bzr diff -r-2
=== modified file 'phatch/pyWx/lib/popup.py'
--- phatch/pyWx/lib/popup.py 2009-06-12 03:53:32 +0000
+++ phatch/pyWx/lib/popup.py 2009-06-13 11:41:54 +0000
@@ -121,7 +121,8 @@
         wx.CallAfter(self.OnAfterChange)

     def OnAfterChange(self):
- self.on_change(unicode(self.Get()))
+ if self:
+ self.on_change(unicode(self.Get()))

 class TextCtrl(_CtrlChoices,wx.ComboBox):
     def __init__(self,parent,value,id=-1,choices=None,**keyw):