Fix xo_color comparison.
This commit is contained in:
parent
e4e728339b
commit
66cc15a498
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user