summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/pdf-invoice/pdf-invoice.vala21
1 files changed, 10 insertions, 11 deletions
diff --git a/src/pdf-invoice/pdf-invoice.vala b/src/pdf-invoice/pdf-invoice.vala
index 8a6242d..7e02b07 100644
--- a/src/pdf-invoice/pdf-invoice.vala
+++ b/src/pdf-invoice/pdf-invoice.vala
@@ -632,16 +632,15 @@ public class InvoicePDF {
}
public void clear() {
- invoice_date = 0;
- invoice_id = "";
- invoice_recipient = {
- "",
- "",
- "",
- "",
- "",
- "",
- };
- invoice_entries = null;
+ invoice_date = 0;
+ invoice_id = "";
+ invoice_recipient.firstname = "";
+ invoice_recipient.lastname = "";
+ invoice_recipient.street = "";
+ invoice_recipient.postal_code = "";
+ invoice_recipient.city = "";
+ invoice_recipient.gender = "";
+
+ invoice_entries = null;
}
}