Show
Ignore:
Timestamp:
02/14/07 10:05:28 (23 months ago)
Author:
fdb
Message:

Small fix in DrawingPrimitives?: check None on equals

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • nodebox/trunk/src/DrawingPrimitives.py

    r83 r88  
    7373         
    7474    def __eq__(self, other): 
     75        if other is None: return False 
    7576        return self.x == other.x and self.y == other.y 
    7677         
     
    318319             
    319320    def __eq__(self, other): 
     321        if other is None: return False 
    320322        if self.cmd != other.cmd: return False 
    321323        return self.x == other.x and self.y == other.y \