Fix xo_color comparison.

This commit is contained in:
Marco Pesenti Gritti 2007-09-10 11:30:48 +02:00
parent e4e728339b
commit 66cc15a498

View File

@ -225,9 +225,9 @@ class XoColor:
def __cmp__(self, other): def __cmp__(self, other):
if isinstance(other, XoColor): if isinstance(other, XoColor):
return self._stroke == other._stroke and self._fill == other._fill if self._stroke == other._stroke and self._fill == other._fill:
else: return 0
return -1 return -1
def get_stroke_color(self): def get_stroke_color(self):
return self._stroke return self._stroke