From 876558f75fd7342eb4cb95a45c6173d4a876bbc1 Mon Sep 17 00:00:00 2001 From: Ettore Perazzoli Date: Mon, 28 Aug 2000 15:27:38 +0000 Subject: Remove a ton of (hopefully harmless) warnings from the ETable code. svn path=/trunk/; revision=5081 --- widgets/table/e-table-group-leaf.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'widgets/table/e-table-group-leaf.c') diff --git a/widgets/table/e-table-group-leaf.c b/widgets/table/e-table-group-leaf.c index d083d44f21..082963a616 100644 --- a/widgets/table/e-table-group-leaf.c +++ b/widgets/table/e-table-group-leaf.c @@ -227,9 +227,11 @@ static void etgl_set_cursor_row (ETableGroup *etg, gint row) { ETableGroupLeaf *etgl = E_TABLE_GROUP_LEAF (etg); - gnome_canvas_item_set(GNOME_CANVAS_ITEM(etgl->item), - "cursor_row", row, - NULL); + + if (etgl->item != NULL) + gnome_canvas_item_set(GNOME_CANVAS_ITEM(etgl->item), + "cursor_row", row, + NULL); } static int -- cgit v1.2.3