diff options
| author | Tavmjong Bah <tavmjong@free.fr> | 2014-03-14 09:54:27 +0000 |
|---|---|---|
| committer | tavmjong-free <tavmjong@free.fr> | 2014-03-14 09:54:27 +0000 |
| commit | a9658ea64a9a78d67468f1e3ebd018de5b963461 (patch) | |
| tree | 0855bb61024ed8fb4d639e609e81d409752fdc3f /src/color.cpp | |
| parent | Remove obsolete Whiteboard cruft from the default preferences file (diff) | |
| download | inkscape-a9658ea64a9a78d67468f1e3ebd018de5b963461.tar.gz inkscape-a9658ea64a9a78d67468f1e3ebd018de5b963461.zip | |
Return correct values for SPColor::operator==
(bzr r13148)
Diffstat (limited to 'src/color.cpp')
| -rw-r--r-- | src/color.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
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 ); |
