r18268 - gnucash/trunk/src/backend/xml - Partly reverting r18246: Disable writing of "hidden" and "placeholder" flags as XML tags.

Christian Stimming cstim at code.gnucash.org
Fri Aug 21 16:39:55 EDT 2009


Author: cstim
Date: 2009-08-21 16:39:54 -0400 (Fri, 21 Aug 2009)
New Revision: 18268
Trac: http://svn.gnucash.org/trac/changeset/18268

Modified:
   gnucash/trunk/src/backend/xml/gnc-account-xml-v2.c
Log:
Partly reverting r18246: Disable writing of "hidden" and "placeholder" flags as XML tags.

Don't write new XML tags in version 2.3.x and 2.4.x because it
would mean 2.2.x cannot read those files again. But we can
enable writing these tags in 2.5.x or late in 2.4.x.

Modified: gnucash/trunk/src/backend/xml/gnc-account-xml-v2.c
===================================================================
--- gnucash/trunk/src/backend/xml/gnc-account-xml-v2.c	2009-08-20 16:44:51 UTC (rev 18267)
+++ gnucash/trunk/src/backend/xml/gnc-account-xml-v2.c	2009-08-21 20:39:54 UTC (rev 18268)
@@ -97,12 +97,17 @@
                     act_type_string,
                     xaccAccountTypeEnumAsString(xaccAccountGetType(act))));
 
+    /* Don't write new XML tags in version 2.3.x and 2.4.x because it
+       would mean 2.2.x cannot read those files again. But we can
+       enable writing these tags in 2.5.x or late in 2.4.x. */
+    /*
 	xmlAddChild(ret, boolean_to_dom_tree(
 							act_hidden_string,
 							xaccAccountGetHidden(act)));
 	xmlAddChild(ret, boolean_to_dom_tree(
 							act_placeholder_string,
 							xaccAccountGetPlaceholder(act)));
+    */
 
     acct_commodity = xaccAccountGetCommodity(act);
     if (acct_commodity != NULL)



More information about the gnucash-changes mailing list