When writing a currency to the data file, write the full commodity

data block for backward compatibility with 1.8, instead of just
writing the quote source information.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13742 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
David Hampton 2006-04-07 04:21:02 +00:00
parent f31638e1cd
commit cdb4c42f62

View File

@ -79,7 +79,13 @@ gnc_commodity_dom_tree_create(const gnc_commodity *com)
xmlAddChild(ret, text_to_dom_tree(cmdty_id,
gnc_commodity_get_mnemonic(com)));
if (!currency) {
/* Enforce backward compatability with 1.8 for the 1.9/2.0 release
* series. */
if (
#if (GNUCASH_MAJOR_VERSION < 2) || ((GNUCASH_MAJOR_VERSION == 2) && (GNUCASH_MINOR_VERSION == 0))
TRUE ||
#endif
!currency) {
if(gnc_commodity_get_fullname(com))
{
xmlAddChild(ret, text_to_dom_tree(cmdty_name,