mirror of
https://github.com/pretix/pretix.git
synced 2026-05-05 15:14:04 +00:00
Fix TypError in PDF preview
This commit is contained in:
@@ -150,7 +150,7 @@ class PdfTicketOutput(BaseTicketOutput):
|
|||||||
alignment=align_map[o['align']]
|
alignment=align_map[o['align']]
|
||||||
)
|
)
|
||||||
|
|
||||||
p = Paragraph(self._get_text_content(op, order, o), style=style)
|
p = Paragraph(self._get_text_content(op, order, o) or "", style=style)
|
||||||
p.wrapOn(canvas, float(o['width']) * mm, 1000 * mm)
|
p.wrapOn(canvas, float(o['width']) * mm, 1000 * mm)
|
||||||
# p_size = p.wrap(float(o['width']) * mm, 1000 * mm)
|
# p_size = p.wrap(float(o['width']) * mm, 1000 * mm)
|
||||||
ad = getAscentDescent(font, float(o['fontsize']))
|
ad = getAscentDescent(font, float(o['fontsize']))
|
||||||
|
|||||||
Reference in New Issue
Block a user