when no element id is specified paint the svg with its own size

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=822139
This commit is contained in:
Marco Martin 2008-06-19 10:15:09 +00:00
parent 04ff38bba3
commit b79b52624e

View File

@ -319,7 +319,12 @@ Svg::~Svg()
void Svg::paint(QPainter* painter, const QPointF& point, const QString& elementID) void Svg::paint(QPainter* painter, const QPointF& point, const QString& elementID)
{ {
QPixmap pix; QPixmap pix;
if (elementID.isNull()) {
d->findInCache(pix, elementID, painter, size());
} else {
d->findInCache(pix, elementID, painter); d->findInCache(pix, elementID, painter);
}
if (pix.isNull()) { if (pix.isNull()) {
return; return;