summaryrefslogtreecommitdiff
path: root/src/svg/qsvghandler.cpp
diff options
context:
space:
mode:
authorQt Forward Merge Bot <qt_forward_merge_bot@qt-project.org>2019-02-02 03:04:29 +0100
committerQt Forward Merge Bot <qt_forward_merge_bot@qt-project.org>2019-02-02 03:04:30 +0100
commitf9d909ceefe6fd693c42ddf3d898ae5c6c7f7f19 (patch)
tree63d50fd1599ff34fc406f3a788d9a8fe1319e2de /src/svg/qsvghandler.cpp
parent2ae3c52fc061f574c9582bf58963fb3996724fbf (diff)
parent74f7566527c6ed3c47fac873e90942f2834d248f (diff)
downloadqtsvg-f9d909ceefe6fd693c42ddf3d898ae5c6c7f7f19.tar.gz
Merge remote-tracking branch 'origin/5.12' into 5.13
Change-Id: I4e35c67936df5609aa2329eab07ec2b126837af2
Diffstat (limited to 'src/svg/qsvghandler.cpp')
-rw-r--r--src/svg/qsvghandler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/svg/qsvghandler.cpp b/src/svg/qsvghandler.cpp
index e935649..0468bbe 100644
--- a/src/svg/qsvghandler.cpp
+++ b/src/svg/qsvghandler.cpp
@@ -3214,7 +3214,7 @@ static bool parseStyleNode(QSvgNode *parent,
Q_UNUSED(handler)
#else
const QStringRef type = attributes.value(QLatin1String("type"));
- if (type.compare(QLatin1String("text/css"), Qt::CaseInsensitive) == 0)
+ if (type.compare(QLatin1String("text/css"), Qt::CaseInsensitive) == 0 || type.isNull())
handler->setInStyle(true);
#endif