summaryrefslogtreecommitdiffstats
path: root/src/gui/painting/qmatrix.cpp
diff options
context:
space:
mode:
authorGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2018-06-06 22:30:48 +0200
committerGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2018-06-21 20:31:23 +0000
commit67776febd50bba009bd806365b4e94a851c31548 (patch)
tree7d0325b8366ae2cd658498dfd947a15ee1d765b9 /src/gui/painting/qmatrix.cpp
parentaf837f964781d61fd086b010cc79abf1462fcf11 (diff)
Fix the qHash implementation for QMatrix / QTransform
The order of the arguments of QHashCombine::operator() was accidentally swapped -- the first is supposed to be the accumlated value, the second the new value to combine. [ChangeLog][QtGui][QMatrix] The qHash() implementation for QMatrix has been changed. [ChangeLog][QtGui][QTransform] The qHash() implementation for QTransform has been changed. Change-Id: Iba13f76ff734a2184c96184ee0e5748c05db07fa Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/gui/painting/qmatrix.cpp')
-rw-r--r--src/gui/painting/qmatrix.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gui/painting/qmatrix.cpp b/src/gui/painting/qmatrix.cpp
index 681490e347..24b33243da 100644
--- a/src/gui/painting/qmatrix.cpp
+++ b/src/gui/painting/qmatrix.cpp
@@ -992,12 +992,12 @@ bool QMatrix::operator==(const QMatrix &m) const
uint qHash(const QMatrix &key, uint seed) Q_DECL_NOTHROW
{
QtPrivate::QHashCombine hash;
- seed = hash(key.m11(), seed);
- seed = hash(key.m12(), seed);
- seed = hash(key.m21(), seed);
- seed = hash(key.m22(), seed);
- seed = hash(key.dx(), seed);
- seed = hash(key.dy(), seed);
+ seed = hash(seed, key.m11());
+ seed = hash(seed, key.m12());
+ seed = hash(seed, key.m21());
+ seed = hash(seed, key.m22());
+ seed = hash(seed, key.dx());
+ seed = hash(seed, key.dy());
return seed;
}