From e78866544d9b7f4077c59e38475fb7b6727bf075 Mon Sep 17 00:00:00 2001 From: Ariya Hidayat Date: Mon, 31 Aug 2009 14:09:11 +0200 Subject: Faster cut-off in SVG parsing when there is no explicit opacity. Reviewed-by: Kim --- src/svg/qsvghandler.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/svg/qsvghandler.cpp b/src/svg/qsvghandler.cpp index 97205b7..abd59e5 100644 --- a/src/svg/qsvghandler.cpp +++ b/src/svg/qsvghandler.cpp @@ -1851,6 +1851,9 @@ static void parseOpacity(QSvgNode *node, const QSvgAttributes &attributes, QSvgHandler *) { + if (attributes.opacity.isEmpty()) + return; + const QString value = attributes.opacity.toString().trimmed(); bool ok = false; -- cgit v0.12