aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/items/qquicktext.cpp
diff options
context:
space:
mode:
authorEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>2012-01-25 15:36:20 +0100
committerQt by Nokia <qt-info@nokia.com>2012-01-26 15:35:18 +0100
commite490a021ffe6be39e5942e57aa82f02977efe72d (patch)
treec125ea91804d40a150c32ec025a0eef51cfb22ae /src/quick/items/qquicktext.cpp
parent40c8da550cac90460970f1dbdca1e6f02be99a8c (diff)
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 <jiang.jiang@nokia.com>
Diffstat (limited to 'src/quick/items/qquicktext.cpp')
-rw-r--r--src/quick/items/qquicktext.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/quick/items/qquicktext.cpp b/src/quick/items/qquicktext.cpp
index 82232ab0ea..969660ac68 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;