mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
* 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:
parent
6ac3dd6b3e
commit
db0fdc1548
@ -74,13 +74,9 @@ gnc_commodity_dom_tree_create(const gnc_commodity *com)
|
|||||||
"cmdty:xcode",
|
"cmdty:xcode",
|
||||||
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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user