Index: gal-a11y-e-table-item.c
===================================================================
RCS file: /export/src/cvs/gal/gal/a11y/e-table/gal-a11y-e-table-item.c,v
retrieving revision 1.16
diff -u -r1.16 gal-a11y-e-table-item.c
--- gal-a11y-e-table-item.c	2003/11/24 02:02:03	1.16
+++ gal-a11y-e-table-item.c	2003/11/24 03:21:36
@@ -1039,16 +1039,19 @@
 	GET_PRIVATE (a11y)->parent = parent;
 	GET_PRIVATE (a11y)->index_in_parent = index_in_parent;
 
-	g_return_val_if_fail (item->cols > 0 && item->rows > 0, NULL);
+	g_return_val_if_fail (item->cols >= 0 && item->rows >= 0, NULL);
 	/* Initialize cell data. */
 	n = item->cols * item->rows;
 	GET_PRIVATE (a11y)->cols = item->cols;
 	GET_PRIVATE (a11y)->rows = item->rows;
-	GET_PRIVATE (a11y)->cell_data = g_malloc0(n*sizeof(gpointer));
-
-	/* memory error. */
-	if ( GET_PRIVATE (a11y) == NULL)
-		return NULL;
+	if (n > 0) {
+		GET_PRIVATE (a11y)->cell_data = g_malloc0(n*sizeof(gpointer));
+		/* memory error. */
+		if ( GET_PRIVATE (a11y)->cell_data == NULL)
+			return NULL;
+	} else
+		GET_PRIVATE (a11y)->cell_data = NULL;
+		
 
         GET_PRIVATE (a11y)->columns = e_table_header_get_columns (item->header);                                                                                
         if ( GET_PRIVATE (a11y)->columns == NULL)
