summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKim Motoyoshi Kalland <kim.kalland@nokia.com>2011-08-15 15:51:57 +0200
committerQt by Nokia <qt-info@nokia.com>2011-08-15 15:59:39 +0200
commit11eeee22affeca89eea90b8555fa8016fd74b789 (patch)
tree1dd159b6921d2dfeff7c967016cf3c18081929b1
parentbfa871f79eae3bc67224621345032d2f71ae96db (diff)
downloadqtsvg-11eeee22affeca89eea90b8555fa8016fd74b789.tar.gz
Fixed infinite loop when loading certain SVGs.
Task-number: QTBUG-16216 Change-Id: Ic382cf6dba43b3c08db43117e84620b272e5adb6 Reviewed-on: http://codereview.qt.nokia.com/2976 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: aavit <qt_aavit@ovi.com>
-rw-r--r--src/svg/qsvgstructure.cpp2
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;