gnucash unstable: Bug 794730 - SIGSEGV when entering an exchange rate, Part 2
John Ralls
jralls at code.gnucash.org
Fri Mar 30 14:24:27 EDT 2018
Updated via https://github.com/Gnucash/gnucash/commit/a23f103e (commit)
from https://github.com/Gnucash/gnucash/commit/7271ce3d (commit)
commit a23f103ebb297516b595aad26d8b7dbecde0e169
Author: John Ralls <jralls at ceridwen.us>
Date: Fri Mar 30 11:12:04 2018 -0700
Bug 794730 - SIGSEGV when entering an exchange rate, Part 2
91f4b19 changed the test for gncInvoiceDateExists from date != 0
to date != INT64_MAX, which isn't backwards compatible, so test
for both. But the submitted file had a posted date of -1 so
gncInvoiceIsPosted returned true anyway. That's not consistent with
the logic in dialog-invoice.c, which checked gncInvoicePostedAcc != NULL,
a better test. The result was that the "Post" button lit up but
gncInvoicePost returned immediately, doing nothing, so change
gncInvoiceIsPosted to use gncInvoicePostedAcc instead.
Summary of changes:
gnucash/gnome/dialog-invoice.c | 7 ++++---
libgnucash/engine/gncInvoice.c | 7 +++++--
2 files changed, 9 insertions(+), 5 deletions(-)
More information about the gnucash-patches
mailing list