summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Reichel <sre@ring0.de>2017-09-29 21:42:39 +0200
committerSebastian Reichel <sre@ring0.de>2017-09-29 21:42:39 +0200
commit172bf9779458f6a03dc0315b2de99ce6ce550840 (patch)
treeef3e9982fa36fbc68861e0a9ab75dfc1ad160ac0
parenta73192b73944eafc8ecb7d9e411c8fed87e00723 (diff)
downloadserial-barcode-scanner-172bf9779458f6a03dc0315b2de99ce6ce550840.tar.bz2
invoice: make valac-0.36 happy
-rw-r--r--src/invoice/invoice.vala30
1 files changed, 13 insertions, 17 deletions
diff --git a/src/invoice/invoice.vala b/src/invoice/invoice.vala
index 443b4c2..1e6dd58 100644
--- a/src/invoice/invoice.vala
+++ b/src/invoice/invoice.vala
@@ -197,23 +197,19 @@ public class InvoiceImplementation {
/* pdf generation */
if(!temporary) {
- try {
- pdf.invoice_id = invoiceid;
- pdf.invoice_date = timestamp;
- pdf.invoice_recipient = {
- userdata.firstname,
- userdata.lastname,
- userdata.street,
- userdata.postcode,
- userdata.city,
- userdata.gender
- };
- pdf.invoice_entries = invoiceentries;
- result.pdfdata = pdf.generate();
- pdf.clear();
- } catch(DBusError e) {
- throw new IOError.FAILED("PDF Generation failed");
- }
+ pdf.invoice_id = invoiceid;
+ pdf.invoice_date = timestamp;
+ pdf.invoice_recipient = {
+ userdata.firstname,
+ userdata.lastname,
+ userdata.street,
+ userdata.postcode,
+ userdata.city,
+ userdata.gender
+ };
+ pdf.invoice_entries = invoiceentries;
+ result.pdfdata = pdf.generate();
+ pdf.clear();
}
result.plain = generate_invoice_message(MessageType.PLAIN, temporary, get_address(userdata.gender), userdata.lastname, invoiceentries, total_sum);