summaryrefslogtreecommitdiffstats
path: root/src/svg/qsvgstyle.cpp
diff options
context:
space:
mode:
authorSarah Smith <sarah.j.smith@nokia.com>2009-09-15 03:12:32 (GMT)
committerSarah Smith <sarah.j.smith@nokia.com>2009-09-15 03:12:32 (GMT)
commit227dd18f0e25ee522e5a4323e849590a314dd4cd (patch)
treec7712b9b55e4f05bccf77c92edc992c3068ddfb3 /src/svg/qsvgstyle.cpp
parent02cc6a825227daf6f35f7bc17377a4a622f16391 (diff)
parentd94f6a35202d2d62671072b4ba78e75b07d630bd (diff)
downloadQt-227dd18f0e25ee522e5a4323e849590a314dd4cd.zip
Qt-227dd18f0e25ee522e5a4323e849590a314dd4cd.tar.gz
Qt-227dd18f0e25ee522e5a4323e849590a314dd4cd.tar.bz2
Merge branch '4.6' of git@scm.dev.nokia.troll.no:qt/qt into 4.6
Diffstat (limited to 'src/svg/qsvgstyle.cpp')
-rw-r--r--src/svg/qsvgstyle.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/svg/qsvgstyle.cpp b/src/svg/qsvgstyle.cpp
index 564bf24..f834016 100644
--- a/src/svg/qsvgstyle.cpp
+++ b/src/svg/qsvgstyle.cpp
@@ -934,7 +934,7 @@ void QSvgGradientStyle::setStopLink(const QString &link, QSvgTinyDocument *doc)
void QSvgGradientStyle::resolveStops()
{
if (!m_link.isEmpty() && m_doc) {
- QSvgStyleProperty *prop = m_doc->scopeStyle(m_link);
+ QSvgStyleProperty *prop = m_doc->styleProperty(m_link);
if (prop) {
if (prop->type() == QSvgStyleProperty::GRADIENT) {
QSvgGradientStyle *st =
@@ -943,6 +943,8 @@ void QSvgGradientStyle::resolveStops()
m_gradient->setStops(st->qgradient()->stops());
m_gradientStopsSet = st->gradientStopsSet();
}
+ } else {
+ qWarning("Could not resolve property : %s", qPrintable(m_link));
}
m_link = QString();
}