Make compare check against the right color
authorGunnar Sletta <gunnar.sletta@digia.com>
Tue, 13 Aug 2013 13:27:32 +0000 (15:27 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 16 Aug 2013 12:53:56 +0000 (14:53 +0200)
Change-Id: Ie23864c782ecdda26b68eb8813799aecae7bbb7e
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
src/quick/scenegraph/qsgdistancefieldglyphnode_p.cpp

index 0739a32..844b9c0 100644 (file)
@@ -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);
 }