r16658 - gnucash/branches/2.2/src/app-utils - [r16652] Bug#500427: copy any notes associated with SXes upon creation.
Andreas Köhler
andi5 at cvs.gnucash.org
Sat Dec 15 17:43:44 EST 2007
Author: andi5
Date: 2007-12-15 17:43:43 -0500 (Sat, 15 Dec 2007)
New Revision: 16658
Trac: http://svn.gnucash.org/trac/changeset/16658
Modified:
gnucash/branches/2.2/src/app-utils/gnc-sx-instance-model.c
Log:
[r16652] Bug#500427: copy any notes associated with SXes upon creation.
Modified: gnucash/branches/2.2/src/app-utils/gnc-sx-instance-model.c
===================================================================
--- gnucash/branches/2.2/src/app-utils/gnc-sx-instance-model.c 2007-12-15 22:37:12 UTC (rev 16657)
+++ gnucash/branches/2.2/src/app-utils/gnc-sx-instance-model.c 2007-12-15 22:43:43 UTC (rev 16658)
@@ -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