Changeset 4540

Show
Ignore:
Timestamp:
10/02/08 18:44:46 (2 months ago)
Author:
ed
Message:

Fixed a bug discovered when working with splitters.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/ide/ClassDesignerComponents.py

    r4534 r4540  
    143143                    ## which if these parameters are skipped/included. 
    144144                continue 
     145            csz = self.ControllingSizer 
    145146            if (hasSizer or isinstance(self, dabo.ui.dPage) or isSplitPanel) and prop in ("Width", 
    146                     "Height") and self.ControllingSizer.getItemProp(self, "Expand"): 
     147                    "Height") and ((csz is not None) and csz.getItemProp(self, "Expand")): 
    147148                continue 
    148149            if isinstance(self, dabo.ui.dLabel) and prop in ("Width", "Height"): 
    149150                # If the width/height is controlled by the sizer, don't save it. 
    150                 csz = self.ControllingSizer 
    151151                szornt = csz.Orientation 
    152152                exp = csz.getItemProp(self, "Expand")