Add assert().
svn path=/trunk/KDE/kdebase/workspace/; revision=782273
This commit is contained in:
parent
5e44946ee7
commit
d8a3602e45
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue