From d8a3602e45f956237442a93bb2e040b92bd7a3b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Tue, 4 Mar 2008 18:29:17 +0000 Subject: [PATCH] Add assert(). svn path=/trunk/KDE/kdebase/workspace/; revision=782273 --- lib/kwineffects.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/kwineffects.cpp b/lib/kwineffects.cpp index 3c4e2455c3..8fb82557e3 100644 --- a/lib/kwineffects.cpp +++ b/lib/kwineffects.cpp @@ -770,6 +770,7 @@ bool PaintClipper::clip() QRegion PaintClipper::paintArea() { + assert( areas != NULL ); // can be called only with clip() == true QRegion ret = QRegion( 0, 0, displayWidth(), displayHeight()); foreach( QRegion r, *areas ) ret &= r;