From: joncruz Date: Tue, 10 Apr 2007 05:30:25 +0000 (+0000) Subject: Made safe for empty containers X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=502e89d71501d2130f522fac5b59b4de3add3a58;p=inkscape.git Made safe for empty containers --- diff --git a/src/widgets/sp-widget.cpp b/src/widgets/sp-widget.cpp index 696daa9d2..cf40b2c73 100644 --- a/src/widgets/sp-widget.cpp +++ b/src/widgets/sp-widget.cpp @@ -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;