From 76a9bdcc85524a43aa9c2903507de815092c2735 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Tue, 23 Oct 2007 13:07:15 +0000 Subject: [PATCH] Fix crash. svn path=/trunk/KDE/kdebase/workspace/; revision=728490 --- composite.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/composite.cpp b/composite.cpp index c63decd292..0967dfb8b4 100644 --- a/composite.cpp +++ b/composite.cpp @@ -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 ); }