diff options
author | Yoann Lopes <yoann.lopes@nokia.com> | 2011-07-18 13:17:46 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-07-20 06:57:44 +0200 |
commit | a9b1594576579044c26ef325191a79ffe1df7e27 (patch) | |
tree | 2042cdd489f3a19ec08636ebc9c3e7bb3e912976 /src/declarative/items/qsgtextnode.cpp | |
parent | 29cf717366623bceb4d4e3009600cfa538529c10 (diff) |
Fixed QSGDistanceFieldGlyphNode initialization order.
Change-Id: Id2e8ccf6441ce7e7a2bcdd6f0d50745e7d9ba653
Reviewed-on: http://codereview.qt.nokia.com/1750
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Yoann Lopes <yoann.lopes@nokia.com>
Diffstat (limited to 'src/declarative/items/qsgtextnode.cpp')
-rw-r--r-- | src/declarative/items/qsgtextnode.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/declarative/items/qsgtextnode.cpp b/src/declarative/items/qsgtextnode.cpp index 2eb705fbf6..d36db1b6b6 100644 --- a/src/declarative/items/qsgtextnode.cpp +++ b/src/declarative/items/qsgtextnode.cpp @@ -162,9 +162,13 @@ QSGGlyphNode *QSGTextNode::addGlyphs(const QPointF &position, const QGlyphRun &g dfNode->setStyleColor(styleColor); } node->setColor(color); - appendChildNode(node); } + node->update(); + + if (node != prevNode) + appendChildNode(node); + return node; } |