mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Fix bug.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3756 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
cc5c68a1cc
commit
1ed0f8f4eb
@ -366,6 +366,9 @@ gnc_commodity_table_insert(gnc_commodity_table * table,
|
|||||||
c = gnc_commodity_table_lookup (table, comm->namespace, comm->mnemonic);
|
c = gnc_commodity_table_lookup (table, comm->namespace, comm->mnemonic);
|
||||||
|
|
||||||
if (c) {
|
if (c) {
|
||||||
|
if (c == comm)
|
||||||
|
return c;
|
||||||
|
|
||||||
gnc_commodity_set_fullname (c, gnc_commodity_get_fullname (comm));
|
gnc_commodity_set_fullname (c, gnc_commodity_get_fullname (comm));
|
||||||
gnc_commodity_set_fraction (c, gnc_commodity_get_fraction (comm));
|
gnc_commodity_set_fraction (c, gnc_commodity_get_fraction (comm));
|
||||||
gnc_commodity_set_exchange_code (c,
|
gnc_commodity_set_exchange_code (c,
|
||||||
|
Loading…
Reference in New Issue
Block a user