AUDIT: r16652 - gnucash/trunk/src/app-utils - Bug#500427: copy any notes associated with SXes upon creation.

Josh Sled jsled at cvs.gnucash.org
Sat Dec 15 15:55:37 EST 2007


Author: jsled
Date: 2007-12-15 15:55:37 -0500 (Sat, 15 Dec 2007)
New Revision: 16652
Trac: http://svn.gnucash.org/trac/changeset/16652

Modified:
   gnucash/trunk/src/app-utils/gnc-sx-instance-model.c
Log:
Bug#500427: copy any notes associated with SXes upon creation.
BP


Modified: gnucash/trunk/src/app-utils/gnc-sx-instance-model.c
===================================================================
--- gnucash/trunk/src/app-utils/gnc-sx-instance-model.c	2007-12-15 20:24:23 UTC (rev 16651)
+++ gnucash/trunk/src/app-utils/gnc-sx-instance-model.c	2007-12-15 20:55:37 UTC (rev 16652)
@@ -1015,6 +1015,12 @@
     /* clear any copied KVP data */
     qof_instance_set_slots(QOF_INSTANCE(new_txn), kvp_frame_new());
 
+    /* Bug#500427: copy the notes, if any */
+    if (xaccTransGetNotes(template_txn) != NULL)
+    {
+        xaccTransSetNotes(new_txn, g_strdup(xaccTransGetNotes(template_txn)));
+    }
+
     xaccTransSetDate(new_txn,
                      g_date_get_day(&creation_data->instance->date),
                      g_date_get_month(&creation_data->instance->date),



More information about the gnucash-changes mailing list