Filewatcher File Search
FTP Search
  
Directory (beta)
  
Content Search (beta)
   
pkg://mrproject-0.9-8.src.rpm:1597738/mrproject-0.9-resource-links.patch  info  downloads

--- mrproject-0.9/src/views/gantt/mg-gantt-row.c.resource-links	2003-02-05 17:00:56.000000000 -0500
+++ mrproject-0.9/src/views/gantt/mg-gantt-row.c	2003-02-18 14:59:58.000000000 -0500
@@ -606,7 +606,8 @@
 {
 	MgGanttRowPriv *priv;
 	GList          *l;
-	GList          *assignments;
+	GList          *resources;
+	MrpTask        *task;
 	MrpAssignment  *assignment;
 	MrpResource    *resource;
 	gchar          *name, *name_unit;
@@ -618,6 +619,8 @@
 
 	priv = row->priv;
 	
+	task = priv->task;
+	
 	g_array_set_size (priv->resource_widths, 0);
 
 	/* Measure the spacing between resource names. */
@@ -626,12 +629,12 @@
 	spacing = rect.width / PANGO_SCALE;
 	
 	x = 0;
-	assignments = mrp_task_get_assignments (priv->task);
+	resources = mrp_task_get_assigned_resources (priv->task);
 		
-	for (l = assignments; l; l = l->next) {
-		assignment = l->data;
+	for (l = resources; l; l = l->next) {
+		resource = l->data;
 
-		resource = mrp_assignment_get_resource (assignment);
+		assignment = mrp_task_get_assignment (task, resource);
 		units = mrp_assignment_get_units (assignment);
 		
 		g_object_get (resource, "name", &name, NULL);
@@ -671,9 +674,7 @@
 		text = tmp_str;
 	}
 
-	if (assignments) {
-		g_list_free (assignments);
-	}
+	g_list_free (resources);
 	
 	if (text == NULL) {
 		pango_layout_set_text (priv->layout, "", 0);
--- mrproject-0.9/ChangeLog.resource-links	2003-02-17 10:39:14.000000000 -0500
+++ mrproject-0.9/ChangeLog	2003-02-18 14:59:58.000000000 -0500
@@ -0,0 +1,6 @@
+2003-02-18  Richard Hult  <rhult@codefactory.se>
+
+	* src/views/gantt/mg-gantt-row.c (gantt_row_update_resources): Get
+        the resources in the same order as when we built the link position
+        array. Fixes #542.
+
Results 1 - 1
Help - FTP Sites List - Software Dir.
Searching half a billion files worldwide
© 1997-2008 IT MARUHN