From e490a021ffe6be39e5942e57aa82f02977efe72d Mon Sep 17 00:00:00 2001 From: Eskil Abrahamsen Blomfeldt Date: Wed, 25 Jan 2012 15:36:20 +0100 Subject: [PATCH] Fix updating of QML Text element The negation in the test was left over from an earlier API and would break the test and most likely cause the Text element to always bypass its update. Change-Id: Idc5c94a76a0477a9433305f5aba43c4bb8d67806 Reviewed-by: Jiang Jiang --- src/quick/items/qquicktext.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/quick/items/qquicktext.cpp b/src/quick/items/qquicktext.cpp index 82232ab..969660a 100644 --- a/src/quick/items/qquicktext.cpp +++ b/src/quick/items/qquicktext.cpp @@ -1865,7 +1865,7 @@ QSGNode *QQuickText::updatePaintNode(QSGNode *oldNode, UpdatePaintNodeData *data return 0; } - if (!d->updateType != QQuickTextPrivate::UpdatePaintNode && oldNode != 0) { + if (d->updateType != QQuickTextPrivate::UpdatePaintNode && oldNode != 0) { // Update done in preprocess() in the nodes d->updateType = QQuickTextPrivate::UpdateNone; return oldNode; -- 2.7.4