dabo Commit
Revision 5657
Date: 2010-02-06 14:24:06 -0800 (Sat, 06 Feb 2010)
Author: Ed
Trac: http://trac.dabodev.com/changeset/5657
Changed:
U trunk/dabo/ui/uiwx/dPanel.py
Log:
Ran into a case in the Class Designer where a panel was slated to be destroyed
when layout() was called, resulting in a dead object error. This fix catches
that case.
Diff:
Modified: trunk/dabo/ui/uiwx/dPanel.py
===================================================================
--- trunk/dabo/ui/uiwx/dPanel.py 2010-02-05 21:33:46 UTC (rev 5656)
+++ trunk/dabo/ui/uiwx/dPanel.py 2010-02-06 22:24:06 UTC (rev 5657)
@@ -85,6 +85,8 @@
def layout(self, resetMin=False):
""" Wrap the wx version of the call, if possible. """
+ if not self:
+ return
if resetMin or self._alwaysResetSizer or self._square:
# Set the panel's minimum size back to zero. This is
sometimes
# necessary when the items in the panel have reduced in
size.
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message:
http://leafe.com/archives/byMID/[email protected]