Bug #548783. Change g_assert to g_return_if_fail to avoid unnucessary

2008-08-21  Li Yuan  <li.yuan@sun.com>

        * gailtreeview.c: (traverse_cells):
        Bug #548783. Change g_assert to g_return_if_fail to avoid
        unnucessary crash.

svn path=/trunk/; revision=21174
This commit is contained in:
Li Yuan 2008-08-21 05:41:16 +00:00 committed by Li Yuan
parent 22a47c3dbd
commit 0f942a3cb8
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2008-08-21 Li Yuan <li.yuan@sun.com>
* gailtreeview.c: (traverse_cells):
Bug #548783. Change g_assert to g_return_if_fail to avoid
unnucessary crash.
2008-08-21 Li Yuan <li.yuan@sun.com>
* gailtreeview.c: (model_row_deleted):

View File

@ -3748,7 +3748,7 @@ traverse_cells (GailTreeView *tree_view,
if (cell_info->in_use)
{
row_path = gtk_tree_row_reference_get_path (cell_info->cell_row_ref);
g_assert (row_path != NULL);
g_return_if_fail (row_path != NULL);
if (tree_path == NULL)
act_on_cell = TRUE;
else