if we find it in the cache, let's not render it anyways

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=872361
This commit is contained in:
Aaron J. Seigo 2008-10-17 02:25:18 +00:00
parent 4f776b73c1
commit 12c5b4da94

View File

@ -412,7 +412,9 @@ void PanelSvgPrivate::generateBackground(PanelData *panel)
QString id = QString::fromLatin1("%4_%3_%2_%1_").
arg(panel->panelSize.width()).arg(panel->panelSize.height()).arg(prefix).arg(q->imagePath());
Theme *theme = Theme::defaultTheme();
theme->findInCache(id, panel->cachedBackground);
if (theme->findInCache(id, panel->cachedBackground)) {
return;
}
//kDebug() << "generating background";
const int topWidth = q->elementSize(prefix + "top").width();