summaryrefslogtreecommitdiffstats
path: root/src/declarative
diff options
context:
space:
mode:
authorYann Bodson <yann.bodson@nokia.com>2010-02-25 01:49:31 (GMT)
committerYann Bodson <yann.bodson@nokia.com>2010-02-25 01:49:31 (GMT)
commitd46c4d5d32a14ae119d88c59c00ebe62ae8ce027 (patch)
tree82f7bb20cca4d331d4547dbdd217adcb8b476691 /src/declarative
parentf39bb2af2d81640d30222cd5abc31b076105dd8b (diff)
downloadQt-d46c4d5d32a14ae119d88c59c00ebe62ae8ce027.zip
Qt-d46c4d5d32a14ae119d88c59c00ebe62ae8ce027.tar.gz
Qt-d46c4d5d32a14ae119d88c59c00ebe62ae8ce027.tar.bz2
QML Text item clipping logic was reversed
Task-number: QTBUG-8180
Diffstat (limited to 'src/declarative')
-rw-r--r--src/declarative/graphicsitems/qdeclarativetext.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativetext.cpp b/src/declarative/graphicsitems/qdeclarativetext.cpp
index 307b674..ca253df 100644
--- a/src/declarative/graphicsitems/qdeclarativetext.cpp
+++ b/src/declarative/graphicsitems/qdeclarativetext.cpp
@@ -811,8 +811,8 @@ void QDeclarativeText::paint(QPainter *p, const QStyleOptionGraphicsItem *, QWid
break;
}
- bool needClip = !clip() && (d->imgCache.width() > width() ||
- d->imgCache.height() > height());
+ bool needClip = clip() && (d->imgCache.width() > width() ||
+ d->imgCache.height() > height());
if (needClip) {
p->save();