From e3173ab4ef8682001239d38310d7dd6ba49a80e8 Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Wed, 1 Jun 2016 21:10:32 +0200 Subject: [PATCH] Only print attendee name on ticket if present --- src/pretix/plugins/ticketoutputpdf/ticketoutput.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pretix/plugins/ticketoutputpdf/ticketoutput.py b/src/pretix/plugins/ticketoutputpdf/ticketoutput.py index 22572a6fa..bf68b6dc7 100644 --- a/src/pretix/plugins/ticketoutputpdf/ticketoutput.py +++ b/src/pretix/plugins/ticketoutputpdf/ticketoutput.py @@ -87,7 +87,7 @@ class PdfTicketOutput(BaseTicketOutput): p.drawString(code_x * units.mm, code_y * units.mm, op.secret) attendee_s = self.settings.get('attendee_s', default=0, as_type=float) - if code_s: + if code_s and op.attendee_name: p.setFont("Helvetica", attendee_s) attendee_x = self.settings.get('attendee_x', default=15, as_type=float) attendee_y = self.settings.get('code_y', default=100, as_type=float)