summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2010-12-07 18:57:46 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2010-12-07 18:57:46 +0000
commit318bd10c7f4dcbbb3dff472380929f70be53c863 (patch)
treee06ea60b8ed63d92351ecdba19c924312dc2d756 /lib
parent9c6377964c43ed034cf644a22311810629f42934 (diff)
downloadredmine-318bd10c7f4dcbbb3dff472380929f70be53c863.tar.gz
redmine-318bd10c7f4dcbbb3dff472380929f70be53c863.zip
Gantt: fixes position of line in pdf (#6348).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4475 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r--lib/redmine/helpers/gantt.rb11
1 files changed, 9 insertions, 2 deletions
diff --git a/lib/redmine/helpers/gantt.rb b/lib/redmine/helpers/gantt.rb
index fa3a1259c..b64347343 100644
--- a/lib/redmine/helpers/gantt.rb
+++ b/lib/redmine/helpers/gantt.rb
@@ -157,6 +157,8 @@ module Redmine
@subjects_rendered = true unless options[:only] == :lines
@lines_rendered = true unless options[:only] == :subjects
+
+ render_end(options)
end
def render_project(project, options={})
@@ -221,6 +223,13 @@ module Redmine
options[:indent] -= options[:indent_increment]
end
end
+
+ def render_end(options={})
+ case options[:format]
+ when :pdf
+ options[:pdf].Line(15, options[:top], PDF::TotalWidth, options[:top])
+ end
+ end
def subject_for_project(project, options)
case options[:format]
@@ -929,8 +938,6 @@ module Redmine
:pdf => pdf
}
render(options)
-
- pdf.Line(15, top, subject_width+g_width, top)
pdf.Output
end