Same here: don't render null icons

svn path=/trunk/KDE/kdebase/workspace/; revision=688599
icc-effect-5.14.5
Rivo Laks 2007-07-16 11:51:54 +00:00
parent 1ec2b1d228
commit 1552ad2c11
1 changed files with 6 additions and 0 deletions

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