Fix updating of QML Text element
authorEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>
Wed, 25 Jan 2012 14:36:20 +0000 (15:36 +0100)
committerQt by Nokia <qt-info@nokia.com>
Thu, 26 Jan 2012 14:35:18 +0000 (15:35 +0100)
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 <jiang.jiang@nokia.com>
src/quick/items/qquicktext.cpp

index 82232ab..969660a 100644 (file)
@@ -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;