Changeset 4541

Show
Ignore:
Timestamp:
10/03/08 04:50:23 (2 months ago)
Author:
ed
Message:

FIxed a problem introduced in the last commit with certain classes that are not controlled by sizers.

Files:

Legend:

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

    r4540 r4541  
    143143                    ## which if these parameters are skipped/included. 
    144144                continue 
    145             csz = self.ControllingSizer 
     145            try: 
     146                csz = self.ControllingSizer 
     147            except AttributeError: 
     148                csz = None 
    146149            if (hasSizer or isinstance(self, dabo.ui.dPage) or isSplitPanel) and prop in ("Width", 
    147150                    "Height") and ((csz is not None) and csz.getItemProp(self, "Expand")):