summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorWarwick Allison <warwick.allison@nokia.com>2009-12-02 23:57:30 (GMT)
committerWarwick Allison <warwick.allison@nokia.com>2009-12-02 23:57:30 (GMT)
commit5e7a6806f32b9ff922325a9cad9b2b2405747b0b (patch)
tree9f2b1df49c768c26128d7c293fc30334175e49fd /src
parentf4857a2ad1e119f406c4feb52ed167c83a3de00a (diff)
downloadQt-5e7a6806f32b9ff922325a9cad9b2b2405747b0b.zip
Qt-5e7a6806f32b9ff922325a9cad9b2b2405747b0b.tar.gz
Qt-5e7a6806f32b9ff922325a9cad9b2b2405747b0b.tar.bz2
Fix test failure.
That +1 was a typo (the qCeil is already sufficient to bound to int rect).
Diffstat (limited to 'src')
-rw-r--r--src/declarative/graphicsitems/qmlgraphicspainteditem.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/declarative/graphicsitems/qmlgraphicspainteditem.cpp b/src/declarative/graphicsitems/qmlgraphicspainteditem.cpp
index aec5d6b..a31f08f 100644
--- a/src/declarative/graphicsitems/qmlgraphicspainteditem.cpp
+++ b/src/declarative/graphicsitems/qmlgraphicspainteditem.cpp
@@ -340,8 +340,8 @@ void QmlGraphicsPaintedItem::paint(QPainter *p, const QStyleOptionGraphicsItem *
qp.scale(d->contentsScale,d->contentsScale);
QRect sclip(qFloor(r.x()/d->contentsScale),
qFloor(r.y()/d->contentsScale),
- 1+qCeil(r.width()/d->contentsScale+r.x()/d->contentsScale-qFloor(r.x()/d->contentsScale)),
- 1+qCeil(r.height()/d->contentsScale+r.y()/d->contentsScale-qFloor(r.y()/d->contentsScale)));
+ qCeil(r.width()/d->contentsScale+r.x()/d->contentsScale-qFloor(r.x()/d->contentsScale)),
+ qCeil(r.height()/d->contentsScale+r.y()/d->contentsScale-qFloor(r.y()/d->contentsScale)));
drawContents(&qp, sclip);
}
QmlGraphicsPaintedItemPrivate::ImageCacheItem *newitem = new QmlGraphicsPaintedItemPrivate::ImageCacheItem;