Fix crash.

svn path=/trunk/KDE/kdebase/workspace/; revision=728490
This commit is contained in:
Luboš Luňák 2007-10-23 13:07:15 +00:00
parent 211bbc95ba
commit 76a9bdcc85

View file

@ -548,6 +548,8 @@ void Toplevel::addWorkspaceRepaint( const QRect& r2 )
{
if( !compositing())
return;
if( effectWindow() == NULL ) // TODO - this can happen during window destruction
return workspace()->addRepaint( r2 );
QRect r = effects->transformWindowDamage( effectWindow(), r2 );
workspace()->addRepaint( r );
}