summaryrefslogtreecommitdiffstats
path: root/src/xml/dom/qdom.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/xml/dom/qdom.cpp')
-rw-r--r--src/xml/dom/qdom.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xml/dom/qdom.cpp b/src/xml/dom/qdom.cpp
index e1a4a36aa08..3ef7bbe3e85 100644
--- a/src/xml/dom/qdom.cpp
+++ b/src/xml/dom/qdom.cpp
@@ -1445,7 +1445,7 @@ void QDomNodePrivate::saveSubTree(const QDomNodePrivate *n, QTextStream &s,
const QDomNodePrivate *prev = root;
root = root->next;
// Close QDomElementPrivate groups
- while (!root && prev && (layerDepth > 0)) {
+ while (!root && (layerDepth > 0)) {
root = prev->parent();
layerDepth --;
root->afterSave(s, layerDepth + branchDepth, indent);