mirror of
https://github.com/Gnucash/gnucash.git
synced 2026-09-03 20:53:02 -05:00
Bug #348701 Wrong currency symbol when currency is set to DKK
This fix reverts changeset r7200, which caused some currency symbols to be replaced with the EURO sign. This replacement was a workaround for gtkhtml1 and no longer needed. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18563 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
@@ -284,15 +284,9 @@
|
||||
(xaccPrintAmount datum (gnc-default-print-info #f)))
|
||||
|
||||
(define (gnc:default-html-gnc-monetary-renderer datum params)
|
||||
(let* ((result (xaccPrintAmount
|
||||
(gnc:gnc-monetary-amount datum)
|
||||
(gnc-commodity-print-info
|
||||
(gnc:gnc-monetary-commodity datum) #t)))
|
||||
(ind (string-index result (integer->char 164))))
|
||||
(if ind
|
||||
(string-append (substring result 0 ind) "€"
|
||||
(substring result (+ 1 ind) (string-length result)))
|
||||
result)))
|
||||
(xaccPrintAmount
|
||||
(gnc:gnc-monetary-amount datum)
|
||||
(gnc-commodity-print-info (gnc:gnc-monetary-commodity datum) #t)))
|
||||
|
||||
(define (gnc:default-html-number-renderer datum params)
|
||||
(xaccPrintAmount
|
||||
|
||||
Reference in New Issue
Block a user