Fix r22010 to not crash if the current file has no company name.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22058 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Mike Alexander 2012-02-20 23:02:08 +00:00
parent bbf0f9ef17
commit d486d807c1
6 changed files with 6 additions and 6 deletions

View File

@ -158,7 +158,7 @@
(add-option
(gnc:make-string-option
gnc:pagename-general optname-party-name
"b" opthelp-party-name (gnc:company-info gnc:*company-name*)))
"b" opthelp-party-name (or (gnc:company-info gnc:*company-name*) "")))
;; date at which to report balance
(gnc:options-add-report-date!

View File

@ -126,7 +126,7 @@
(add-option
(gnc:make-string-option
gnc:pagename-general optname-party-name
"b" opthelp-party-name (gnc:company-info gnc:*company-name*)))
"b" opthelp-party-name (or (gnc:company-info gnc:*company-name*) "")))
(add-option
(gnc:make-simple-boolean-option

View File

@ -147,7 +147,7 @@
(add-option
(gnc:make-string-option
gnc:pagename-general optname-party-name
"b" opthelp-party-name (gnc:company-info gnc:*company-name*)))
"b" opthelp-party-name (or (gnc:company-info gnc:*company-name*) "")))
(add-option
(gnc:make-budget-option

View File

@ -111,7 +111,7 @@
(add-option
(gnc:make-string-option
(N_ "General") optname-party-name
"b" opthelp-party-name (gnc:company-info gnc:*company-name*)))
"b" opthelp-party-name (or (gnc:company-info gnc:*company-name*) "")))
;; date at which to report balance
(gnc:options-add-date-interval!

View File

@ -151,7 +151,7 @@
(add-option
(gnc:make-string-option
gnc:pagename-general optname-party-name
"b" opthelp-party-name (gnc:company-info gnc:*company-name*)))
"b" opthelp-party-name (or (gnc:company-info gnc:*company-name*) "")))
;; period over which to report income
(gnc:options-add-date-interval!

View File

@ -149,7 +149,7 @@
(add-option
(gnc:make-string-option
(N_ "General") optname-party-name
"b" opthelp-party-name (gnc:company-info gnc:*company-name*)))
"b" opthelp-party-name (or (gnc:company-info gnc:*company-name*) "")))
;; the period over which to collect adjusting/closing entries and
;; date at which to report the balance