Changeset 1632

Show
Ignore:
Timestamp:
07/12/07 18:20:37 (1 year ago)
Author:
wrobe..@pld-linux.org
Message:

- when solving equation constraint, then check if variable really changed;

this prevents equation constraint from marking variable dirty forever
(equation constraint is no longer juggling constraint)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • gaphas/branches/hw/gaphas/constraint.py

    r1631 r1632  
    289289            args[nm] = v.value 
    290290            if v is var: arg = nm 
    291         var.value = self._solve_for(arg, args) 
     291        v = self._solve_for(arg, args)  
     292        if var != v: 
     293            var.value = v 
     294 
    292295 
    293296    def _solve_for(self, arg, args):