diff options
author | Ariya Hidayat <ariya.hidayat@nokia.com> | 2009-08-31 13:03:05 (GMT) |
---|---|---|
committer | Ariya Hidayat <ariya.hidayat@nokia.com> | 2009-08-31 13:05:55 (GMT) |
commit | e4dbcd65d417309c06b15f56dec31e1e0a1b0c64 (patch) | |
tree | 85ed78eb9104e7b98d0ad67310effb6147315243 /src/svg | |
parent | 668925d66f894c73dc47435858e32710ee6b3865 (diff) | |
download | Qt-e4dbcd65d417309c06b15f56dec31e1e0a1b0c64.zip Qt-e4dbcd65d417309c06b15f56dec31e1e0a1b0c64.tar.gz Qt-e4dbcd65d417309c06b15f56dec31e1e0a1b0c64.tar.bz2 |
Faster cut-off when SVG composition op is not explicitly set.
Reviewed-by: Kim
Diffstat (limited to 'src/svg')
-rw-r--r-- | src/svg/qsvghandler.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/svg/qsvghandler.cpp b/src/svg/qsvghandler.cpp index 3d60cae..d0b52da 100644 --- a/src/svg/qsvghandler.cpp +++ b/src/svg/qsvghandler.cpp @@ -1925,8 +1925,9 @@ static void parseCompOp(QSvgNode *node, const QSvgAttributes &attributes, QSvgHandler *) { - QString value = attributes.compOp.toString(); - value = value.trimmed(); + if (attributes.compOp.isEmpty()) + return; + QString value = attributes.compOp.toString().trimmed(); if (!value.isEmpty()) { QSvgCompOpStyle *compop = new QSvgCompOpStyle(svgToQtCompositionMode(value)); |