--- libgnomecanvas/gnome-canvas-shape.c.orig	2005-05-21 10:21:46.000000000 +0000
+++ libgnomecanvas/gnome-canvas-shape.c	2005-05-21 10:23:05.000000000 +0000
@@ -1343,7 +1343,9 @@
 {
 	GnomeCanvasShapePrivGdk * gdk;
 
-	g_assert (!((GnomeCanvasItem *)shape)->canvas->aa);
+	if (((GnomeCanvasItem *)shape)->canvas != NULL) {
+		g_assert (!((GnomeCanvasItem *)shape)->canvas->aa);
+	}
 
 	gdk = shape->priv->gdk;
 
