mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
A little error checking for report titles.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13153 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
943532c8cd
commit
91c112f432
@ -130,14 +130,16 @@
|
||||
(push (lambda (l) (set! retval (cons l retval))))
|
||||
(objs (gnc:html-document-objects doc))
|
||||
(work-to-do (length objs))
|
||||
(work-done 0))
|
||||
(work-done 0)
|
||||
(title (gnc:html-document-title doc)))
|
||||
;; compile the doc style
|
||||
(gnc:html-style-table-compile (gnc:html-document-style doc)
|
||||
(gnc:html-document-style-stack doc))
|
||||
;; push it
|
||||
(gnc:html-document-push-style doc (gnc:html-document-style doc))
|
||||
|
||||
(gnc:report-render-starting (gnc:html-document-title doc))
|
||||
(if (string-null? title)
|
||||
(gnc:error "Null document title")
|
||||
(gnc:report-render-starting (gnc:html-document-title doc)))
|
||||
(if (not (null? headers?))
|
||||
(begin
|
||||
(push "<html>\n")
|
||||
|
Loading…
Reference in New Issue
Block a user