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:
parent
04ff38bba3
commit
b79b52624e
7
svg.cpp
7
svg.cpp
@ -319,7 +319,12 @@ Svg::~Svg()
|
||||
void Svg::paint(QPainter* painter, const QPointF& point, const QString& elementID)
|
||||
{
|
||||
QPixmap pix;
|
||||
d->findInCache(pix, elementID, painter);
|
||||
|
||||
if (elementID.isNull()) {
|
||||
d->findInCache(pix, elementID, painter, size());
|
||||
} else {
|
||||
d->findInCache(pix, elementID, painter);
|
||||
}
|
||||
|
||||
if (pix.isNull()) {
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user