[Gnucash-changes] r13742 - gnucash/trunk/src/backend/file - When writing a currency to the data file, write the full commodity

David Hampton hampton at cvs.gnucash.org
Fri Apr 7 00:21:03 EDT 2006


Author: hampton
Date: 2006-04-07 00:21:02 -0400 (Fri, 07 Apr 2006)
New Revision: 13742
Trac: http://svn.gnucash.org/trac/changeset/13742

Modified:
   gnucash/trunk/src/backend/file/gnc-commodity-xml-v2.c
Log:
When writing a currency to the data file, write the full commodity
data block for backward compatibility with 1.8, instead of just
writing the quote source information.


Modified: gnucash/trunk/src/backend/file/gnc-commodity-xml-v2.c
===================================================================
--- gnucash/trunk/src/backend/file/gnc-commodity-xml-v2.c	2006-04-06 03:44:50 UTC (rev 13741)
+++ gnucash/trunk/src/backend/file/gnc-commodity-xml-v2.c	2006-04-07 04:21:02 UTC (rev 13742)
@@ -79,7 +79,13 @@
     xmlAddChild(ret, text_to_dom_tree(cmdty_id,
                                       gnc_commodity_get_mnemonic(com)));
 
-    if (!currency) {
+    /* Enforce backward compatability with 1.8 for the 1.9/2.0 release
+     * series. */
+    if (
+#if (GNUCASH_MAJOR_VERSION < 2) || ((GNUCASH_MAJOR_VERSION == 2) && (GNUCASH_MINOR_VERSION == 0))
+	TRUE ||
+#endif
+	!currency) {
       if(gnc_commodity_get_fullname(com))
       {
       	  xmlAddChild(ret, text_to_dom_tree(cmdty_name,



More information about the gnucash-changes mailing list