Changeset 2092

Show
Ignore:
Timestamp:
09/06/07 04:48:01 (1 year ago)
Author:
arj..@yirdis.nl
Message:

add extra check for constraint removal, so the undo system is not upset by None constraints.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • gaphor/trunk/gaphor/adapters/connectors.py

    r2085 r2092  
    124124        """ 
    125125        try: 
    126             self.line.canvas.solver.remove_constraint(handle._connect_constraint) 
     126            if handle._connect_constraint: 
     127                self.line.canvas.solver.remove_constraint(handle._connect_constraint) 
    127128        except AttributeError: 
    128129            pass # No _connect_constraint property yet