Fix the pixmap drawing of the SVG so that it always draws the whole element. The size it draws it at is given by the QRectF still.

svn path=/trunk/KDE/kdebase/workspace/plasma/lib/; revision=669225
This commit is contained in:
Matt Williams 2007-05-28 20:09:50 +00:00
parent 6393ddd3ad
commit c2b3db02e8

View File

@ -154,7 +154,7 @@ void Svg::paint(QPainter* painter, const QRectF& rect, const QString& elementID)
{
QPixmap pix;
d->findInCache(pix, elementID);
painter->drawPixmap(rect, pix, rect);
painter->drawPixmap(rect, pix, QRectF(QPointF(0,0), pix.size()));
}
void Svg::resize( int width, int height )