Project

General

Profile

Defect #13630 » pdf.rb.patch

F Schroedter, 2013-03-28 19:27

View differences:

lib/redmine/export/pdf.rb (working copy)
389 389
        base_x = pdf.GetX
390 390
        base_y = pdf.GetY
391 391
        max_height = issues_to_pdf_write_cells(pdf, query.inline_columns, col_width, row_height, true)
392
        pdf.Rect(base_x, base_y, table_width + col_id_width, max_height, 'FD');
392
        pdf.Rect(base_x, base_y, table_width, max_height, 'FD');
393 393
        pdf.SetXY(base_x, base_y);
394 394

  
395 395
        # write the cells on page
396
        pdf.RDMCell(col_id_width, row_height, "#", "T", 0, 'C', 1)
397 396
        issues_to_pdf_write_cells(pdf, query.inline_columns, col_width, row_height, true)
398 397
        issues_to_pdf_draw_borders(pdf, base_x, base_y, base_y + max_height, col_id_width, col_width)
399 398
        pdf.SetY(base_y + max_height);
......
449 448
            group_label = group.blank? ? 'None' : group.to_s.dup
450 449
            group_label << " (#{query.issue_count_by_group[group]})"
451 450
            pdf.Bookmark group_label, 0, -1
452
            pdf.RDMCell(table_width + col_id_width, row_height * 2, group_label, 1, 1, 'L')
451
            pdf.RDMCell(table_width, row_height * 2, group_label, 1, 1, 'L')
453 452
            pdf.SetFontStyle('',8)
454 453
            previous_group = group
455 454
          end
......
474 473
          end
475 474

  
476 475
          # write the cells on page
477
          pdf.RDMCell(col_id_width, row_height, issue.id.to_s, "T", 0, 'C', 1)
478 476
          issues_to_pdf_write_cells(pdf, col_values, col_width, row_height)
479 477
          issues_to_pdf_draw_borders(pdf, base_x, base_y, base_y + max_height, col_id_width, col_width)
480 478
          pdf.SetY(base_y + max_height);
......
515 513
      # Draw lines to close the row (MultiCell border drawing in not uniform)
516 514
      def issues_to_pdf_draw_borders(pdf, top_x, top_y, lower_y,
517 515
                                     id_width, col_widths)
518
        col_x = top_x + id_width
516
        col_x = top_x
519 517
        pdf.Line(col_x, top_y, col_x, lower_y)    # id right border
520 518
        col_widths.each do |width|
521 519
          col_x += width
(2-2/4)