Skip to content

Commit 5f94fef

Browse files
committed
Fixed wrong height calculation
1 parent e512832 commit 5f94fef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

barcode/writer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ def calculate_size(self, modules_per_line, number_of_lines):
127127
number_of_text_lines = len(self.text.splitlines())
128128
if self.font_size and self.text:
129129
height += (
130-
pt2mm(self.font_size) / 2 * number_of_text_lines + self.text_distance
130+
pt2mm(self.font_size) * number_of_text_lines + self.text_distance
131131
)
132132
height += self.text_line_distance * (number_of_text_lines - 1)
133133
return width, height

0 commit comments

Comments
 (0)