summaryrefslogtreecommitdiffstats
path: root/src/color.cpp
diff options
context:
space:
mode:
authorJabier Arraiza Cenoz <jabier.arraiza@marker.es>2014-03-14 13:32:07 +0000
committerJabiertxof <jtx@jtx.marker.es>2014-03-14 13:32:07 +0000
commitfd0ca31309d9fb4ffa8da11dee80f935ebc4c0fb (patch)
tree54686ce820bd72a2081aec10d9638946937ae824 /src/color.cpp
parentcommit Vinícius code (diff)
parentAdd a few font related tests. (diff)
downloadinkscape-fd0ca31309d9fb4ffa8da11dee80f935ebc4c0fb.tar.gz
inkscape-fd0ca31309d9fb4ffa8da11dee80f935ebc4c0fb.zip
update to trunk
(bzr r11950.1.295)
Diffstat (limited to 'src/color.cpp')
-rw-r--r--src/color.cpp7
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 );