src/widget/widget_composite.cpp
branchcpp_gui
changeset 6295 a88d8c2cff6e
parent 6283 7072ee68c676
child 6297 4bf29d14edba
--- a/src/widget/widget_composite.cpp	Sat Mar 10 04:52:01 2007 +0000
+++ b/src/widget/widget_composite.cpp	Sat Mar 10 08:53:59 2007 +0000
@@ -112,8 +112,9 @@
 		WidgetIterator it = it_next++;
 		/* get child */
 		Widget *wd_child = (*it).second;
-		/* tell him we are closing */
-		wd_child->OnPaint(ev);
+		/* tell him we are painting */
+		ClipDrawContext ctx(wd_child->Left(), wd_child->Top(), wd_child->Width(), wd_child->Height());
+		if (!ctx.IsEmpty()) wd_child->OnPaint(ev);
 	}
 }