diff options
author | Kim Motoyoshi Kalland <kim.kalland@nokia.com> | 2011-08-15 13:51:57 (GMT) |
---|---|---|
committer | Kim Motoyoshi Kalland <kim.kalland@nokia.com> | 2011-08-15 15:19:11 (GMT) |
commit | 17a0782f2c0886ff19fc2c1a0bfbc96861ff2996 (patch) | |
tree | e331005cd4712ac8d97df986d5bcfac1d4489c44 | |
parent | 857202824e7d6083eeb87fc52d3770f8fd82b559 (diff) | |
download | Qt-17a0782f2c0886ff19fc2c1a0bfbc96861ff2996.zip Qt-17a0782f2c0886ff19fc2c1a0bfbc96861ff2996.tar.gz Qt-17a0782f2c0886ff19fc2c1a0bfbc96861ff2996.tar.bz2 |
Fixed infinite loop when loading certain SVGs.
Task-number: QTBUG-16216
Reviewed-by: aavit
-rw-r--r-- | src/svg/qsvgstructure.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/svg/qsvgstructure.cpp b/src/svg/qsvgstructure.cpp index cc158ba..4d9fad5 100644 --- a/src/svg/qsvgstructure.cpp +++ b/src/svg/qsvgstructure.cpp @@ -369,7 +369,7 @@ QSvgNode * QSvgStructureNode::previousSiblingNode(QSvgNode *n) const { QSvgNode *prev = 0; QList<QSvgNode*>::const_iterator itr = m_renderers.constBegin(); - while (itr != m_renderers.constEnd()) { + for (; itr != m_renderers.constEnd(); ++itr) { QSvgNode *node = *itr; if (node == n) return prev; |