* 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

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