diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2017-04-04 17:31:50 +0300 |
---|---|---|
committer | Ivo van Dongen <ivovandongen@users.noreply.github.com> | 2017-04-04 18:31:11 +0300 |
commit | 64beba3accb0f2088b2e01fad710f915c81d99c7 (patch) | |
tree | 72d6dcee0fcfc81074db093f988d81f2fe8bba57 | |
parent | 1d1ea2fa2489e817538a2f7109b9687e1d72bbdf (diff) | |
download | qtlocation-mapboxgl-64beba3accb0f2088b2e01fad710f915c81d99c7.tar.gz |
[core] fix equality operator on Color
-rw-r--r-- | src/csscolorparser/csscolorparser.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/csscolorparser/csscolorparser.hpp b/src/csscolorparser/csscolorparser.hpp index 0d5feeb8ce..0e16ec4996 100644 --- a/src/csscolorparser/csscolorparser.hpp +++ b/src/csscolorparser/csscolorparser.hpp @@ -45,7 +45,7 @@ struct Color { }; inline bool operator==(const Color& lhs, const Color& rhs) { - return lhs.r == rhs.r && lhs.g == rhs.g && lhs.b == rhs.b && ::fabs(lhs.a - lhs.b) < 0.0001f; + return lhs.r == rhs.r && lhs.g == rhs.g && lhs.b == rhs.b && ::fabs(lhs.a - rhs.a) < 0.0001f; } inline bool operator!=(const Color& lhs, const Color& rhs) { |