Changeset 2160
- Timestamp:
- 10/07/07 23:38:29 (1 year ago)
- Files:
-
- gaphor/trunk/gaphor/adapters/connectors.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
gaphor/trunk/gaphor/adapters/connectors.py
r2126 r2160 112 112 CanvasProjection(h2.pos, element)), 113 113 point=CanvasProjection(handle.pos, line)) 114 handle. _connect_constraint= lc114 handle.connection_data = lc 115 115 element.canvas.solver.add_constraint(lc) 116 116 … … 124 124 """ 125 125 try: 126 if handle. _connect_constraint:127 self.line.canvas.solver.remove_constraint(handle. _connect_constraint)126 if handle.connection_data: 127 self.line.canvas.solver.remove_constraint(handle.connection_data) 128 128 except AttributeError: 129 pass # No _connect_constraintproperty yet130 handle. _connect_constraint= None129 pass # No connection_data property yet 130 handle.connection_data = None 131 131 132 132
