diff options
author | Marco Pesenti Gritti <mpg@redhat.com> | 2007-09-10 09:30:48 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <mpg@redhat.com> | 2007-09-10 09:30:48 (GMT) |
commit | 66cc15a498a60fc3c2883f86faa4fe88dbcd9fc7 (patch) | |
tree | 86ad9c6ddf27c9c3f33b7121c45d25d469e43abc /sugar/graphics | |
parent | e4e728339b0da69dd227c1aca22f60439ec4f86a (diff) |
Fix xo_color comparison.
Diffstat (limited to 'sugar/graphics')
-rw-r--r-- | sugar/graphics/xocolor.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sugar/graphics/xocolor.py b/sugar/graphics/xocolor.py index 3f9fe31..d37eab1 100644 --- a/sugar/graphics/xocolor.py +++ b/sugar/graphics/xocolor.py @@ -225,9 +225,9 @@ class XoColor: def __cmp__(self, other): if isinstance(other, XoColor): - return self._stroke == other._stroke and self._fill == other._fill - else: - return -1 + if self._stroke == other._stroke and self._fill == other._fill: + return 0 + return -1 def get_stroke_color(self): return self._stroke |