mirror of
https://github.com/Gnucash/gnucash.git
synced 2024-11-25 18:30:23 -06:00
Bug #528835: Harden gnc:txf-get-code-info when tax lookups fail.
BP git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17152 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
70efd54257
commit
37300535b6
@ -39,7 +39,9 @@
|
||||
;;;; Private
|
||||
|
||||
(define (gnc:txf-get-code-info categories code index)
|
||||
(vector-ref (cdr (assv code categories)) index))
|
||||
(let ((category (assv code categories)))
|
||||
(and category
|
||||
(vector-ref (cdr category) index))))
|
||||
|
||||
(define txf-help-categories
|
||||
(list
|
||||
|
@ -30,7 +30,9 @@
|
||||
;;;; Private
|
||||
|
||||
(define (gnc:txf-get-code-info categories code index)
|
||||
(vector-ref (cdr (assv code categories)) index))
|
||||
(let ((category (assv code categories)))
|
||||
(and category
|
||||
(vector-ref (cdr category) index))))
|
||||
|
||||
(define txf-help-categories
|
||||
(list
|
||||
|
Loading…
Reference in New Issue
Block a user