Skip to content

Commit

Permalink
toc calculation bugfix d6 (#2038)
Browse files Browse the repository at this point in the history
  • Loading branch information
peterschaer committed Dec 19, 2024
1 parent 8eb5112 commit 43a88a1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pyramid_oereb/contrib/print_proxy/mapfish_print/toc_pages.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,9 @@ def compute_d5(self):
def compute_d6_left(self):
total_size = 0

blank_space_above_d6 = 26
total_size += blank_space_above_d6

# General Information (1 title, multiple items)
general_information_title_height = 8 # general_info_and_disclaimer.jrxml
general_information_item_line_heigth = 8 # general_info_and_disclaimer.jrxml
Expand Down Expand Up @@ -153,6 +156,9 @@ def compute_length_of_wrapped_text(text, nb_char, line_height):
def compute_d6_right(self):
total_size = 0

blank_space_above_d6 = 26
total_size += blank_space_above_d6

blank_space_below_disclaimers = 6 # disclaimer_and_qrcode.jrxml
disclaimer_title_line_height = 8 # disclaimer_and_qrcode.jrxml
disclaimer_item_line_height = 8 # disclaimer_and_qrcode.jrxml
Expand Down

0 comments on commit 43a88a1

Please sign in to comment.