Fixes progress calculation on gantt (#7838).
Contributed by Etienne Massip.
Authored by: jplang 2011-03-28
Parent: [r5235]
Child: [r5237]