dabo Commit
Revision 4540
Date: 2008-10-02 18:44:46 -0700 (Thu, 02 Oct 2008)
Author: Ed
Trac: http://svn.dabodev.com/trac/dabo/changeset/4540

Changed:
U   trunk/ide/ClassDesignerComponents.py

Log:
Fixed a bug discovered when working with splitters.


Diff:
Modified: trunk/ide/ClassDesignerComponents.py
===================================================================
--- trunk/ide/ClassDesignerComponents.py        2008-10-02 14:01:03 UTC (rev 
4539)
+++ trunk/ide/ClassDesignerComponents.py        2008-10-03 01:44:46 UTC (rev 
4540)
@@ -142,12 +142,12 @@
                                        ## Note: there may be additional cases 
where we might have to fine-tune
                                        ## which if these parameters are 
skipped/included.
                                continue
+                       csz = self.ControllingSizer
                        if (hasSizer or isinstance(self, dabo.ui.dPage) or 
isSplitPanel) and prop in ("Width",
-                                       "Height") and 
self.ControllingSizer.getItemProp(self, "Expand"):
+                                       "Height") and ((csz is not None) and 
csz.getItemProp(self, "Expand")):
                                continue
                        if isinstance(self, dabo.ui.dLabel) and prop in 
("Width", "Height"):
                                # If the width/height is controlled by the 
sizer, don't save it.
-                               csz = self.ControllingSizer
                                szornt = csz.Orientation
                                exp = csz.getItemProp(self, "Expand")
                                prptn = csz.getItemProp(self, "Proportion")




_______________________________________________
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]

Reply via email to