$OpenBSD: patch-src_widgets_qtabbar_cpp,v 1.1 2002/04/09 14:19:40 espie Exp $
--- src/widgets/qtabbar.cpp.orig	Mon Mar 18 10:46:36 2002
+++ src/widgets/qtabbar.cpp	Tue Apr  9 16:11:12 2002
@@ -627,6 +627,8 @@ void QTabBar::paintLabel( QPainter* p, c
 
 void QTabBar::paintEvent( QPaintEvent * e )
 {
+    if ( e->rect().isNull() )
+        return;
     QSharedDoubleBuffer buffer( this, e->rect() );
 
     buffer.painter()->setBrushOrigin( rect().bottomLeft() );
