* src/engine/gnc-commodity-xml-v2.c

(gnc_commodity_dom_tree_create): use new func.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4208 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
James LewisMoss 2001-05-15 15:52:57 +00:00
parent 6ac3dd6b3e
commit db0fdc1548

View File

@ -75,12 +75,8 @@ gnc_commodity_dom_tree_create(const gnc_commodity *com)
gnc_commodity_get_exchange_code(com))); gnc_commodity_get_exchange_code(com)));
} }
{ xmlAddChild(ret, int_to_dom_tree("cmdty:fraction",
gchar *text; gnc_commodity_get_fraction(com)));
text = g_strdup_printf("%d", gnc_commodity_get_fraction(com));
xmlAddChild(ret, text_to_dom_tree("cmdty:fraction", text));
g_free(text);
}
return ret; return ret;
} }