summaryrefslogtreecommitdiffstats
path: root/src/svg/qsvgstyle.cpp
diff options
context:
space:
mode:
authorKim Motoyoshi Kalland <kim.kalland@nokia.com>2009-04-06 14:56:36 (GMT)
committerKim Motoyoshi Kalland <kim.kalland@nokia.com>2009-04-06 15:03:02 (GMT)
commit003223dcfc1fa884b82085db19d4c4056bf6eaa0 (patch)
tree7e7c7ad3c5fd95e9b0a519b2b140edc9ec241f32 /src/svg/qsvgstyle.cpp
parentfc0a71e4b4e4ce1e0f57c6d7be6bd9d935062fc2 (diff)
downloadQt-003223dcfc1fa884b82085db19d4c4056bf6eaa0.zip
Qt-003223dcfc1fa884b82085db19d4c4056bf6eaa0.tar.gz
Qt-003223dcfc1fa884b82085db19d4c4056bf6eaa0.tar.bz2
Removed usage of NaN in SVG gradients.
The previous change 6c2dd295b2ca2f9125fe072d035a3784ce748718 to remove usage of NaN in SVG gradients was incomplete. This commit should fix that. Task-number: 250146 Reviewed-by: Samuel
Diffstat (limited to 'src/svg/qsvgstyle.cpp')
-rw-r--r--src/svg/qsvgstyle.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/svg/qsvgstyle.cpp b/src/svg/qsvgstyle.cpp
index 4a40bed..b065395 100644
--- a/src/svg/qsvgstyle.cpp
+++ b/src/svg/qsvgstyle.cpp
@@ -257,7 +257,7 @@ void QSvgGradientStyle::apply(QPainter *p, const QRectF &/*rect*/, QSvgNode *, Q
// If the gradient is marked as empty, insert transparent black
if (!m_gradientStopsSet) {
- m_gradient->setColorAt(0.0, QColor(0, 0, 0, 0));
+ m_gradient->setStops(QGradientStops() << QGradientStop(0.0, QColor(0, 0, 0, 0)));
m_gradientStopsSet = true;
}