mirror of
https://github.com/Gnucash/gnucash.git
synced 2026-09-03 20:53:02 -05:00
Don't crash running the Account/Account Txn Reports from A/R (#460432)
Two fixes here: * make sure to call the correct report. The C code calls into scheme with a #f, not '(), so check for both cases in standard-reports.scm. * In the owner-report, don't return #f or '() but rather return -1 when the user tries to run the Account Transaction Report on A/R or A/P when they don't have a transaction selected. This will at least stop gnucash from crashing, but it will appear that gnucash isn't doing anything. A step in the right direction but still not the best solution. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16361 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
@@ -719,7 +719,7 @@
|
||||
|
||||
(let* ((temp-owner (gncOwnerCreate))
|
||||
(owner (gnc:owner-from-split split temp-owner))
|
||||
(res #f))
|
||||
(res -1)) ;; XXX -- in this case we should create an error report
|
||||
|
||||
(if (not (null? owner))
|
||||
(set! res (gnc:owner-report-create owner account)))
|
||||
|
||||
@@ -60,7 +60,7 @@
|
||||
(gnc:debug "hash: " gnc:*register-report-hash*)
|
||||
(gnc:debug "split: " split)
|
||||
(if type-info
|
||||
(if (not (null? split))
|
||||
(if (and split (not (null? split)))
|
||||
(begin (gnc:debug "get-split...") (get-split type-info))
|
||||
(begin (gnc:debug "get-non-split...") (get-non-split type-info)))
|
||||
#f)))
|
||||
|
||||
Reference in New Issue
Block a user