summaryrefslogtreecommitdiffstats
path: root/src/declarative/graphicsitems/qdeclarativetext.cpp
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2010-10-04 01:59:38 (GMT)
committerMichael Brasser <michael.brasser@nokia.com>2010-10-04 02:00:45 (GMT)
commit29ddbd6f3021bd69a7badedc9749850ec1c1dabf (patch)
tree48d14064c8c505970e79d555465548fc69b18dbd /src/declarative/graphicsitems/qdeclarativetext.cpp
parentd7c052a509191a0a5c632391ce318c5036900a18 (diff)
downloadQt-29ddbd6f3021bd69a7badedc9749850ec1c1dabf.zip
Qt-29ddbd6f3021bd69a7badedc9749850ec1c1dabf.tar.gz
Qt-29ddbd6f3021bd69a7badedc9749850ec1c1dabf.tar.bz2
Fix clipping behavior for non-cached text.
Diffstat (limited to 'src/declarative/graphicsitems/qdeclarativetext.cpp')
-rw-r--r--src/declarative/graphicsitems/qdeclarativetext.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativetext.cpp b/src/declarative/graphicsitems/qdeclarativetext.cpp
index c2dd850..65f1564 100644
--- a/src/declarative/graphicsitems/qdeclarativetext.cpp
+++ b/src/declarative/graphicsitems/qdeclarativetext.cpp
@@ -1143,7 +1143,7 @@ void QDeclarativeText::paint(QPainter *p, const QStyleOptionGraphicsItem *, QWid
} else {
qreal y = boundingRect().y();
- bool needClip = !clip() && (d->cachedLayoutSize.width() > width() ||
+ bool needClip = clip() && (d->cachedLayoutSize.width() > width() ||
d->cachedLayoutSize.height() > height());
if (needClip) {