From a9658ea64a9a78d67468f1e3ebd018de5b963461 Mon Sep 17 00:00:00 2001 From: Tavmjong Bah Date: Fri, 14 Mar 2014 10:54:27 +0100 Subject: Return correct values for SPColor::operator== (bzr r13148) --- src/color.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/color.cpp') diff --git a/src/color.cpp b/src/color.cpp index 5eb0d91ef..dccd603b0 100644 --- a/src/color.cpp +++ b/src/color.cpp @@ -84,9 +84,10 @@ SPColor& SPColor::operator= (SPColor const& other) */ bool SPColor::operator == (SPColor const& other) const { - bool match = (v.c[0] != other.v.c[0]) - && (v.c[1] != other.v.c[1]) - && (v.c[2] != other.v.c[2]); + bool match = + (v.c[0] == other.v.c[0]) && + (v.c[1] == other.v.c[1]) && + (v.c[2] == other.v.c[2]); match &= profileMatches( icc, other.icc ); -- cgit v1.2.3