diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2012-09-11 02:16:03 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2012-09-11 02:16:03 +0000 |
commit | 69d06607607816bd9de2ff5c4aa56c45fd8923af (patch) | |
tree | 6f0284fea1c606171620d58aefc18e71adc33dad /lib | |
parent | 3f7a7d9b149fb6192dd78371d14c6ec7d5c6f6d9 (diff) | |
download | redmine-69d06607607816bd9de2ff5c4aa56c45fd8923af.tar.gz redmine-69d06607607816bd9de2ff5c4aa56c45fd8923af.zip |
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
Diffstat (limited to 'lib')
-rw-r--r-- | lib/redmine/helpers/gantt.rb | 4 |
1 files 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 |