diff options
author | Yann Bodson <yann.bodson@nokia.com> | 2010-02-25 01:49:31 (GMT) |
---|---|---|
committer | Yann Bodson <yann.bodson@nokia.com> | 2010-02-25 01:49:31 (GMT) |
commit | d46c4d5d32a14ae119d88c59c00ebe62ae8ce027 (patch) | |
tree | 82f7bb20cca4d331d4547dbdd217adcb8b476691 /src/declarative | |
parent | f39bb2af2d81640d30222cd5abc31b076105dd8b (diff) | |
download | Qt-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.cpp | 4 |
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(); |