summaryrefslogtreecommitdiffstats
path: root/redmine
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2006-11-27 19:53:59 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2006-11-27 19:53:59 +0000
commit67e81b0ae9f2a63e10d28c4ea29edd34c7c34f00 (patch)
tree7802c8160b4f1f6f96fa3b24fcfbc344fc8dd97d /redmine
parent51317b350cba68e80c0ea8624a48b63a6caf149b (diff)
downloadredmine-67e81b0ae9f2a63e10d28c4ea29edd34c7c34f00.tar.gz
redmine-67e81b0ae9f2a63e10d28c4ea29edd34c7c34f00.zip
gantt correction
git-svn-id: http://redmine.rubyforge.org/svn/trunk@53 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'redmine')
-rw-r--r--redmine/app/views/projects/gantt.rfpdf2
-rw-r--r--redmine/app/views/projects/gantt.rhtml2
2 files changed, 2 insertions, 2 deletions
diff --git a/redmine/app/views/projects/gantt.rfpdf b/redmine/app/views/projects/gantt.rfpdf
index 4da789b18..cd412f5e9 100644
--- a/redmine/app/views/projects/gantt.rfpdf
+++ b/redmine/app/views/projects/gantt.rfpdf
@@ -117,7 +117,7 @@ pdf.SetFont('Arial','B',7)
i_start_date = (i.start_date >= @date_from ? i.start_date : @date_from )
i_end_date = (i.due_date <= @date_to ? i.due_date : @date_to )
- i_done_date = i.start_date + ((i.due_date - i.start_date)*i.done_ratio/100).floor
+ i_done_date = i.start_date + ((i.due_date - i.start_date+1)*i.done_ratio/100).floor
i_done_date = (i_done_date <= @date_from ? @date_from : i_done_date )
i_done_date = (i_done_date >= @date_to ? @date_to : i_done_date )
diff --git a/redmine/app/views/projects/gantt.rhtml b/redmine/app/views/projects/gantt.rhtml
index 51334660c..cb515cd7e 100644
--- a/redmine/app/views/projects/gantt.rhtml
+++ b/redmine/app/views/projects/gantt.rhtml
@@ -202,7 +202,7 @@ top = headers_heigth + 12
i_start_date = (i.start_date >= @date_from ? i.start_date : @date_from )
i_end_date = (i.due_date <= @date_to ? i.due_date : @date_to )
- i_done_date = i.start_date + ((i.due_date - i.start_date)*i.done_ratio/100).floor
+ i_done_date = i.start_date + ((i.due_date - i.start_date+1)*i.done_ratio/100).floor
i_done_date = (i_done_date <= @date_from ? @date_from : i_done_date )
i_done_date = (i_done_date >= @date_to ? @date_to : i_done_date )