summaryrefslogtreecommitdiffstats
path: root/src/svg/qsvghandler.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/qsvghandler.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/qsvghandler.cpp')
-rw-r--r--src/svg/qsvghandler.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/svg/qsvghandler.cpp b/src/svg/qsvghandler.cpp
index 18ba71c..433a3ad 100644
--- a/src/svg/qsvghandler.cpp
+++ b/src/svg/qsvghandler.cpp
@@ -2587,10 +2587,12 @@ static void parseBaseGradient(QSvgNode *node,
if (prop && prop->type() == QSvgStyleProperty::GRADIENT) {
QSvgGradientStyle *inherited =
static_cast<QSvgGradientStyle*>(prop);
- if (!inherited->stopLink().isEmpty())
+ if (!inherited->stopLink().isEmpty()) {
gradProp->setStopLink(inherited->stopLink(), handler->document());
- else
+ } else {
grad->setStops(inherited->qgradient()->stops());
+ gradProp->setGradientStopsSet(inherited->gradientStopsSet());
+ }
matrix = inherited->qmatrix();
} else {