Changeset 2256

Show
Ignore:
Timestamp:
03/05/08 23:48:49 (4 months ago)
Author:
arj..@yirdis.nl
Message:

Added testcase that exposes bug #107.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • gaphas/trunk/gaphas/item.py

    r2214 r2256  
    463463    fuzziness = reversible_property(lambda s: s._fuzziness, _set_fuzziness) 
    464464 
    465     @observed 
    466     def _set_orthogonal(self, orthogonal): 
    467         """ 
    468         >>> a = Line() 
    469         >>> a.orthogonal 
    470         False 
    471         """ 
     465    def _set_orthogonal_constraints(self, orthogonal): 
    472466        if not self.canvas: 
    473467            self._orthogonal = orthogonal and [ None ] or [] 
     
    497491        self.request_update() 
    498492 
     493    @observed 
     494    def _set_orthogonal(self, orthogonal): 
     495        """ 
     496        >>> a = Line() 
     497        >>> a.orthogonal 
     498        False 
     499        """ 
     500        self._set_orthogonal_constraints(orthogonal) 
     501 
    499502    orthogonal = reversible_property(lambda s: bool(s._orthogonal), _set_orthogonal) 
    500503 
     
    510513        """ 
    511514        self._horizontal = horizontal 
    512         self._set_orthogonal(self._orthogonal) 
     515        self._set_orthogonal_constraints(self._orthogonal) 
    513516 
    514517    horizontal = reversible_property(lambda s: s._horizontal, _set_horizontal)