diff options
author | Gunnar Sletta <gunnar.sletta@digia.com> | 2013-08-13 15:27:32 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-08-16 14:53:56 +0200 |
commit | 5a6c99797eaad62564eedc3e3e931ce2becb05dc (patch) | |
tree | 798d0fd2cdf7345dc6fbdb41e007f9224b5e8160 /src/quick/scenegraph/qsgdistancefieldglyphnode_p.cpp | |
parent | 283e7758073f35dcb204caf0b3b8c5fc9dbb4bb1 (diff) |
Make compare check against the right color
Change-Id: Ie23864c782ecdda26b68eb8813799aecae7bbb7e
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
Diffstat (limited to 'src/quick/scenegraph/qsgdistancefieldglyphnode_p.cpp')
-rw-r--r-- | src/quick/scenegraph/qsgdistancefieldglyphnode_p.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/quick/scenegraph/qsgdistancefieldglyphnode_p.cpp b/src/quick/scenegraph/qsgdistancefieldglyphnode_p.cpp index 0739a321d8..844b9c0e03 100644 --- a/src/quick/scenegraph/qsgdistancefieldglyphnode_p.cpp +++ b/src/quick/scenegraph/qsgdistancefieldglyphnode_p.cpp @@ -340,7 +340,7 @@ int QSGDistanceFieldStyledTextMaterial::compare(const QSGMaterial *o) const { Q_ASSERT(o && type() == o->type()); const QSGDistanceFieldStyledTextMaterial *other = static_cast<const QSGDistanceFieldStyledTextMaterial *>(o); - if (m_styleColor != other->m_color) + if (m_styleColor != other->m_styleColor) return &m_styleColor < &other->m_styleColor ? -1 : 1; return QSGDistanceFieldTextMaterial::compare(o); } |