we need to specifically call update in case the geometry doesn't change, and therefore the cached painting isn't invalidated.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=786447
This commit is contained in:
Aaron J. Seigo 2008-03-17 00:26:35 +00:00
parent 1f6956398d
commit ac473c1b7e

View File

@ -624,12 +624,14 @@ void Applet::setDrawStandardBackground(bool drawBackground)
d->getBorderSize(left, top, right, bottom);
setMargins(0, 0, right, bottom);
updateGeometry();
update();
}
} else if (d->background) {
delete d->background;
d->background = 0;
setMargins(0, 0, 0, 0);
updateGeometry();
update();
}
}