Use the symbol in iso-4217-currencies by default

Author:    Frédéric Perrin <frederic.perrin@resel.fr>

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23345 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Geert Janssens 2013-10-28 09:22:38 +00:00
parent 96f52a43e6
commit bc1970bf71
2 changed files with 6 additions and 8 deletions

View File

@ -1754,14 +1754,10 @@ gnc_commodity_get_nice_symbol(const gnc_commodity *cm)
if (!cm) return NULL;
nice_symbol = gnc_commodity_get_user_symbol(cm);
if (nice_symbol)
return nice_symbol;
else if (gnc_commodity_equiv (cm, gnc_locale_default_currency_nodefault ()))
return gnc_localeconv()->currency_symbol;
else if ((nice_symbol = gnc_commodity_get_mnemonic(cm)))
return nice_symbol;
if (nice_symbol && *nice_symbol)
return nice_symbol;
else
return "";
return gnc_commodity_get_mnemonic(cm);
}
/********************************************************************\

View File

@ -54,12 +54,14 @@ exec guile -s $0 "$@"
PWARN(\"failed to insert %s into commodity table\", fullname);
}
}
gnc_commodity_set_user_symbol(c, ~S);
}\n"
fullname
namespace
mnemonic
exchange-code
smallest-fraction)
smallest-fraction
local-symbol)
;; Sorry, code doubling of the error message, but whatever.
(begin