insert into the local cache

svn path=/trunk/KDE/kdelibs/; revision=911758
This commit is contained in:
Aaron J. Seigo 2009-01-16 02:46:33 +00:00
parent 023ae75d69
commit 512bcd03a9

View File

@ -514,11 +514,11 @@ bool Svg::hasElement(const QString &elementId) const
bool found = Theme::defaultTheme()->findInRectsCache(d->path, id, elementRect);
if (found) {
d->localRectCache.insert(id, elementRect);
return elementRect.isValid();
} else {
// kDebug() << "** ** *** !!!!!!!! *** ** ** creating renderer due to hasElement miss" << d->path << elementId;
d->findAndCacheElementRect(elementId);
return d->renderer->elementExists(elementId);
return d->findAndCacheElementRect(elementId).isValid();
}
}