Add assert().

svn path=/trunk/KDE/kdebase/workspace/; revision=782273
This commit is contained in:
Luboš Luňák 2008-03-04 18:29:17 +00:00
parent 5e44946ee7
commit d8a3602e45

View file

@ -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;