AUDIT: r17805 - gnucash/trunk/src/engine - Bug #567174: Restrict commodity mnemonic updates (like NIS to ILS) to iso currencies only.
Andreas Köhler
andi5 at cvs.gnucash.org
Sun Jan 11 07:46:58 EST 2009
Author: andi5
Date: 2009-01-11 07:46:57 -0500 (Sun, 11 Jan 2009)
New Revision: 17805
Trac: http://svn.gnucash.org/trac/changeset/17805
Modified:
gnucash/trunk/src/engine/gnc-commodity.c
Log:
Bug #567174: Restrict commodity mnemonic updates (like NIS to ILS) to iso currencies only.
BP
Modified: gnucash/trunk/src/engine/gnc-commodity.c
===================================================================
--- gnucash/trunk/src/engine/gnc-commodity.c 2009-01-08 02:47:56 UTC (rev 17804)
+++ gnucash/trunk/src/engine/gnc-commodity.c 2009-01-11 12:46:57 UTC (rev 17805)
@@ -1656,10 +1656,12 @@
* Backward compatability support for currencies that have
* recently changed.
*/
- for (i = 0; i < GNC_NEW_ISO_CODES; i++) {
- if (strcmp(mnemonic, gnc_new_iso_codes[i].old_code) == 0) {
- mnemonic = gnc_new_iso_codes[i].new_code;
- break;
+ if (nsp->iso4217) {
+ for (i = 0; i < GNC_NEW_ISO_CODES; i++) {
+ if (strcmp(mnemonic, gnc_new_iso_codes[i].old_code) == 0) {
+ mnemonic = gnc_new_iso_codes[i].new_code;
+ break;
+ }
}
}
return g_hash_table_lookup(nsp->cm_table, (gpointer)mnemonic);
More information about the gnucash-changes
mailing list