aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/items/qquickpathitemgenericrenderer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/quick/items/qquickpathitemgenericrenderer.cpp')
-rw-r--r--src/quick/items/qquickpathitemgenericrenderer.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/quick/items/qquickpathitemgenericrenderer.cpp b/src/quick/items/qquickpathitemgenericrenderer.cpp
index 7a259617dd..4e8fe55df2 100644
--- a/src/quick/items/qquickpathitemgenericrenderer.cpp
+++ b/src/quick/items/qquickpathitemgenericrenderer.cpp
@@ -744,6 +744,10 @@ int QQuickPathItemLinearGradientMaterial::compare(const QSGMaterial *other) cons
const QQuickPathItemGradientCache::GradientDesc *ga = &a->m_fillGradient;
const QQuickPathItemGradientCache::GradientDesc *gb = &b->m_fillGradient;
+
+ if (int d = ga->spread - gb->spread)
+ return d;
+
if (int d = ga->start.x() - gb->start.x())
return d;
if (int d = ga->start.y() - gb->start.y())