From b157fbba5cf3c42d71db024304c3463f8f693d55 Mon Sep 17 00:00:00 2001 From: Olivier Goffart Date: Wed, 18 Mar 2009 18:07:57 +0000 Subject: [PATCH] Backport 941021 Plasma::Svg: Round the drawing size to the pixmap size, otherwise we can get bad arctefacts. (noticable on the eyes applet) svn path=/branches/KDE/4.2/kdelibs/; revision=941024 --- svg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/svg.cpp b/svg.cpp index 7a6c3ede1..a5c672cf9 100644 --- a/svg.cpp +++ b/svg.cpp @@ -454,7 +454,7 @@ void Svg::paint(QPainter *painter, int x, int y, const QString &elementID) void Svg::paint(QPainter *painter, const QRectF &rect, const QString &elementID) { QPixmap pix(d->findInCache(elementID, rect.size())); - painter->drawPixmap(rect, pix, QRectF(QPointF(0, 0), pix.size())); + painter->drawPixmap(QRectF(rect.topLeft(), pix.size()), pix, QRectF(QPointF(0, 0), pix.size())); } void Svg::paint(QPainter *painter, int x, int y, int width, int height, const QString &elementID)