mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
[html-chart] num-columns return 0 for empty-table
this commit fixes whereby data is '() indicating no columns
This commit is contained in:
parent
e2907844be
commit
57c6f175b4
@ -326,7 +326,7 @@
|
||||
(record-modifier <html-table> 'num-rows))
|
||||
|
||||
(define (gnc:html-table-num-columns table)
|
||||
(apply max (map length (gnc:html-table-data table))))
|
||||
(apply max (cons 0 (map length (gnc:html-table-data table)))))
|
||||
|
||||
(define (gnc:html-table-append-row/markup! table markup newrow)
|
||||
(let ((rownum (gnc:html-table-append-row! table newrow)))
|
||||
|
Loading…
Reference in New Issue
Block a user