Changeset 1925

Show
Ignore:
Timestamp:
08/14/07 13:53:35 (1 year ago)
Author:
wrobe..@pld-linux.org
Message:

- check if subject and upper bound exist while checking if upper bound is

visible

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • gaphor/trunk/gaphor/diagram/objectnode.py

    r1915 r1925  
    5454        Do not show upper bound, when it's set to default value. 
    5555        """ 
    56         return self.subject.upperBound.value != DEFAULT_UPPER_BOUND 
     56        subject = self.subject 
     57        return subject and subject.upperBound \ 
     58                and subject.upperBound.value != DEFAULT_UPPER_BOUND 
    5759 
    5860