From dddcc2b56200c651ff23ed65363a259355bd1677 Mon Sep 17 00:00:00 2001 From: Sebastian Reichel Date: Sat, 11 May 2013 23:30:52 +0200 Subject: pdf-invoice: special users have no firstname --- src/pdf-invoice/pdf-invoice.vala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/pdf-invoice') diff --git a/src/pdf-invoice/pdf-invoice.vala b/src/pdf-invoice/pdf-invoice.vala index 5182425..9c290ac 100644 --- a/src/pdf-invoice/pdf-invoice.vala +++ b/src/pdf-invoice/pdf-invoice.vala @@ -608,7 +608,7 @@ public class InvoicePDF { if(invoice_date == 0) throw new InvoicePDFError.NO_INVOICE_DATE("No invoice date given!"); - if(invoice_recipient.firstname == "" || invoice_recipient.lastname == "") + if(invoice_recipient.firstname == "" && invoice_recipient.lastname == "") throw new InvoicePDFError.NO_INVOICE_RECIPIENT("No invoice recipient given!"); /* first page */ -- cgit v1.2.3