[Planner Dev] Help: If mrp_task_get_parent() returns null : who actually sets the parent ?




I'm trying to track down the problem with the
g_node_insert_before() ,See bugzilla
http://bugzilla.gnome.org/show_bug.cgi?id=136044

Its not that gnode function but actually it is a
g_node_append() in mrp-task-manager.c : task_manager_sort_tree ()
thats using a null for the parent. I found that
gnode.h defines g_node_append() as
g_node_insert_before(parent,NULL,node)

OK so how does the parent get set ?. In task_manager_sort_tree()
we have a loop and it walks through the tasks (which
is fine as I added some debug code and it counts
44 tasks in the sample project (see the bugzilla)
but three tasks have a null parent. These are the
same 3 tasks that have no start date and have weird gantt
links.

The key command is....

parent_node = g_hash_table_lookup (hash,mrp_task_get_parent (task));

and it returns a NULL (in 3 cases) so my question is which routine
actually sets up the parent for a task ?. Something in that set is
borked.

Rgds,
Lincoln.




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]