diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2013-06-04 10:54:55 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2013-06-04 10:54:55 +0000 |
commit | 7bc0c261983607e7a9fb9a93f2d8f978ba45536c (patch) | |
tree | 7adfa57d001ebe1d255ac6347d19cddb2fb969ee | |
parent | f41d917141a36a04b56d439d772a91071e0d7a02 (diff) | |
download | redmine-7bc0c261983607e7a9fb9a93f2d8f978ba45536c.tar.gz redmine-7bc0c261983607e7a9fb9a93f2d8f978ba45536c.zip |
pdf: restore "id_width" parameter of issues_to_pdf_draw_borders (#14178)
Contributed by Massimo Rossello.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11920 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | lib/redmine/export/pdf.rb | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/redmine/export/pdf.rb b/lib/redmine/export/pdf.rb index 5632838e7..66abe49c4 100644 --- a/lib/redmine/export/pdf.rb +++ b/lib/redmine/export/pdf.rb @@ -394,7 +394,7 @@ module Redmine # write the cells on page issues_to_pdf_write_cells(pdf, query.inline_columns, col_width, row_height, true) - issues_to_pdf_draw_borders(pdf, base_x, base_y, base_y + max_height, col_width) + issues_to_pdf_draw_borders(pdf, base_x, base_y, base_y + max_height, 0, col_width) pdf.SetY(base_y + max_height); # rows @@ -474,7 +474,7 @@ module Redmine # write the cells on page issues_to_pdf_write_cells(pdf, col_values, col_width, row_height) - issues_to_pdf_draw_borders(pdf, base_x, base_y, base_y + max_height, col_width) + issues_to_pdf_draw_borders(pdf, base_x, base_y, base_y + max_height, 0, col_width) pdf.SetY(base_y + max_height); if query.has_column?(:description) && issue.description? @@ -510,7 +510,9 @@ module Redmine end # Draw lines to close the row (MultiCell border drawing in not uniform) - def issues_to_pdf_draw_borders(pdf, top_x, top_y, lower_y, col_widths) + # + # parameter "id_width" is not used. it is kept for compatibility. + def issues_to_pdf_draw_borders(pdf, top_x, top_y, lower_y, id_width, col_widths) col_x = top_x pdf.Line(col_x, top_y, col_x, lower_y) # id right border col_widths.each do |width| |