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
5
svg.cpp
5
svg.cpp
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user