make this consistent with pixmap() at least, but the multiple images handling still looks broken

svn path=/trunk/KDE/kdelibs/; revision=1177645
This commit is contained in:
Aaron J. Seigo 2010-09-20 19:42:38 +00:00
parent 6655948ccd
commit 9f7ce4026c

View File

@ -515,8 +515,8 @@ QPixmap Svg::pixmap(const QString &elementID)
void Svg::paint(QPainter *painter, const QPointF &point, const QString &elementID)
{
QPixmap pix(elementID.isNull() ? d->findInCache(elementID, size()) :
d->findInCache(elementID));
QPixmap pix((elementID.isNull() || d->multipleImages) ? d->findInCache(elementID, size()) :
d->findInCache(elementID));
if (pix.isNull()) {
return;