After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 136045 - Units against resource in Gantt doesn't update always (legacy bug)
Units against resource in Gantt doesn't update always (legacy bug)
Status: RESOLVED FIXED
Product: planner
Classification: Other
Component: General
unspecified
Other Windows
: Low trivial
: ---
Assigned To: Lincoln Phipps
planner-maint
Depends on:
Blocks:
 
 
Reported: 2004-03-03 09:45 UTC by Lincoln Phipps
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: 2.3/2.4



Description Lincoln Phipps 2004-03-03 09:45:36 UTC
This is in MrProject as well as a Planner bug so its a legacy bug.

Basically do the following,

Open an existing project,
Go to gantt view,
Click a task and right-mouse Edit task,
Go to your resource assignments and alter the units allocated
from 100 to e.g. 75.
The resource units in the gantt row doesn't actually update though it
actually does the job i.e. the line will change size.
Once you do an assignment then they all update.

I do have a simple fix which I'll forward a patch for. 
Look at the gantt_row_ensure_layout () in planner-gantt-row.c
and make sure that gantt_row_update_resources (row) is never
missed out (moved it down a line). This seems to fix the problem.

@@ -602,9 +605,8 @@ gantt_row_ensure_layout (PlannerGanttRow
 	if (row->priv->layout == NULL) {
 		row->priv->layout = gtk_widget_create_pango_layout (
 			GTK_WIDGET (GNOME_CANVAS_ITEM (row)->canvas), NULL);
-
-		gantt_row_update_resources (row);
 	}
+	gantt_row_update_resources (row);
 }

(the line offset may vary as I'm doing other patchs to that right now).
Comment 1 Lincoln Phipps 2004-03-03 09:47:24 UTC
I have a patch for this which I will forward as part of my Resource
Initials feature. I found this bug while testing and also reproduced
it in MrProject.

Comment 2 Richard Hult 2004-03-16 00:59:56 UTC
This was fixed in CVS along with another bug fix.