Same here: don't render null icons

svn path=/trunk/KDE/kdebase/workspace/; revision=688599
This commit is contained in:
Rivo Laks 2007-07-16 11:51:54 +00:00
parent 1ec2b1d228
commit 1552ad2c11

View file

@ -796,6 +796,12 @@ void PresentWindowsEffect::updateFilterTexture()
void PresentWindowsEffect::paintWindowIcon( EffectWindow* w, WindowPaintData& paintdata )
{
// Don't render null icons
if( w->icon().isNull() )
{
return;
}
WindowData& data = mWindowData[ w ];
if( data.icon.serialNumber() != w->icon().serialNumber())
{ // make sure data.icon is the right QPixmap, and rebind