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:
parent
6393ddd3ad
commit
c2b3db02e8
2
svg.cpp
2
svg.cpp
@ -154,7 +154,7 @@ void Svg::paint(QPainter* painter, const QRectF& rect, const QString& elementID)
|
|||||||
{
|
{
|
||||||
QPixmap pix;
|
QPixmap pix;
|
||||||
d->findInCache(pix, elementID);
|
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 )
|
void Svg::resize( int width, int height )
|
||||||
|
Loading…
Reference in New Issue
Block a user