Code

Made safe for empty containers
authorjoncruz <joncruz@users.sourceforge.net>
Tue, 10 Apr 2007 05:30:25 +0000 (05:30 +0000)
committerjoncruz <joncruz@users.sourceforge.net>
Tue, 10 Apr 2007 05:30:25 +0000 (05:30 +0000)
src/widgets/sp-widget.cpp

index 696daa9d25ec0926f9c011c7ae6e077ef2c2070a..cf40b2c73d441ebb7b02158e8d1c6595008c9969 100644 (file)
@@ -176,7 +176,9 @@ sp_widget_expose (GtkWidget *widget, GdkEventExpose *event)
 
        bin = GTK_BIN (widget);
 
-       gtk_container_propagate_expose (GTK_CONTAINER(widget), bin->child, event);
+        if ( bin->child ) {
+            gtk_container_propagate_expose (GTK_CONTAINER(widget), bin->child, event);
+        }
        /*
        if ((bin->child) && (GTK_WIDGET_NO_WINDOW (bin->child))) {
                GdkEventExpose ce;