add also enabled borders in the cached name (fixes moving of panel)

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=872656
This commit is contained in:
Marco Martin 2008-10-17 18:53:20 +00:00
parent 42d446525d
commit 84f23dd033

View File

@ -409,8 +409,8 @@ void PanelSvgPrivate::generateBackground(PanelData *panel)
return; return;
} }
QString id = QString::fromLatin1("%4_%3_%2_%1_"). QString id = QString::fromLatin1("%5_%4_%3_%2_%1_").
arg(panel->panelSize.width()).arg(panel->panelSize.height()).arg(prefix).arg(q->imagePath()); arg(panel->enabledBorders).arg(panel->panelSize.width()).arg(panel->panelSize.height()).arg(prefix).arg(q->imagePath());
Theme *theme = Theme::defaultTheme(); Theme *theme = Theme::defaultTheme();
if (theme->findInCache(id, panel->cachedBackground)) { if (theme->findInCache(id, panel->cachedBackground)) {
return; return;