so people can see when we FAIL and hit up an svg.

the goal is to see *zero* FAILs on a second run

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=872383
This commit is contained in:
Aaron J. Seigo 2008-10-17 05:17:46 +00:00
parent d725fd9413
commit 51e053e529

View File

@ -201,6 +201,10 @@ class SvgPrivate
path = Plasma::Theme::defaultTheme()->imagePath(themePath);
}
kDebug() << "********************************";
kDebug() << "FAIL! **************************";
kDebug() << path << "**";
QHash<QString, SharedSvgRenderer::Ptr>::const_iterator it = s_renderers.find(path);
if (it != s_renderers.end()) {
@ -419,7 +423,7 @@ bool Svg::hasElement(const QString &elementId) const
if (found) {
return elementRect.isValid();
} else {
kDebug() << "** ** *** !!!!!!!! *** ** ** creating renderer due to hasElement miss" << d->path << elementId;
// kDebug() << "** ** *** !!!!!!!! *** ** ** creating renderer due to hasElement miss" << d->path << elementId;
d->findAndCacheElementRect(elementId);
return d->renderer->elementExists(elementId);
}