From 69d06607607816bd9de2ff5c4aa56c45fd8923af Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Tue, 11 Sep 2012 02:16:03 +0000 Subject: [PATCH] gantt: code layout cleanup to_pdf method of lib/redmine/helpers/gantt.rb git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10357 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- lib/redmine/helpers/gantt.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/redmine/helpers/gantt.rb b/lib/redmine/helpers/gantt.rb index 5550970cd..94f5b244b 100644 --- a/lib/redmine/helpers/gantt.rb +++ b/lib/redmine/helpers/gantt.rb @@ -540,7 +540,7 @@ module Redmine pdf.SetY(y_start + header_height) pdf.SetX(left) pdf.RDMCell(width + 1, height, "", "LTR") - left = left + width+1 + left = left + width + 1 end while week_f <= self.date_to width = (week_f + 6 <= self.date_to) ? 7 * zoom : (self.date_to - week_f + 1) * zoom @@ -548,7 +548,7 @@ module Redmine pdf.SetX(left) pdf.RDMCell(width, height, (width >= 5 ? week_f.cweek.to_s : ""), "LTR", 0, "C") left = left + width - week_f = week_f+7 + week_f = week_f + 7 end end # Days headers -- 2.39.5