[Gnucash-changes] Fix ACCOUNT_NSCU Qof Param getter.
Derek Atkins
warlord at cvs.gnucash.org
Sun Jan 30 11:16:31 EST 2005
Log Message:
-----------
Fix ACCOUNT_NSCU Qof Param getter.
* src/engine/Account.c:
This patch fixes: (QofAccessFunc)xaccAccountSetNonStdSCU in
src/engine/Account.c - that's a Set routine allocated as a
QofAccessFunc - the patch changes it to the appropriate Get
routine - the QofSetterFunc is OK.
Tags:
----
gnucash-gnome2-dev
Modified Files:
--------------
gnucash:
ChangeLog
gnucash/src/engine:
Account.c
Revision Data
-------------
Index: ChangeLog
===================================================================
RCS file: /home/cvs/cvsroot/gnucash/ChangeLog,v
retrieving revision 1.1487.2.161
retrieving revision 1.1487.2.162
diff -LChangeLog -LChangeLog -u -r1.1487.2.161 -r1.1487.2.162
--- ChangeLog
+++ ChangeLog
@@ -8,6 +8,12 @@
output and using the QSF_XSD_TIME for the datestrings. KVP
handling will be added in the next version.
+ * src/engine/Account.c:
+ This patch fixes: (QofAccessFunc)xaccAccountSetNonStdSCU in
+ src/engine/Account.c - that's a Set routine allocated as a
+ QofAccessFunc - the patch changes it to the appropriate Get
+ routine - the QofSetterFunc is OK.
+
2005-01-26 Derek Atkins <derek at ihtfp.com>
Neil Williams' QSF Backend.
Index: Account.c
===================================================================
RCS file: /home/cvs/cvsroot/gnucash/src/engine/Account.c,v
retrieving revision 1.222.4.8
retrieving revision 1.222.4.9
diff -Lsrc/engine/Account.c -Lsrc/engine/Account.c -u -r1.222.4.8 -r1.222.4.9
--- src/engine/Account.c
+++ src/engine/Account.c
@@ -2887,7 +2887,7 @@
{ ACCOUNT_FUTURE_MINIMUM_, QOF_TYPE_NUMERIC, (QofAccessFunc)xaccAccountGetProjectedMinimumBalance, NULL },
{ ACCOUNT_TAX_RELATED, QOF_TYPE_BOOLEAN, (QofAccessFunc)xaccAccountGetTaxRelated, (QofSetterFunc) xaccAccountSetTaxRelated },
{ ACCOUNT_SCU, QOF_TYPE_INT32, (QofAccessFunc)xaccAccountGetCommoditySCU, (QofSetterFunc)xaccAccountSetCommoditySCU },
- { ACCOUNT_NSCU, QOF_TYPE_BOOLEAN, (QofAccessFunc)xaccAccountSetNonStdSCU, (QofSetterFunc)xaccAccountSetNonStdSCU },
+ { ACCOUNT_NSCU, QOF_TYPE_BOOLEAN, (QofAccessFunc)xaccAccountGetNonStdSCU, (QofSetterFunc)xaccAccountSetNonStdSCU },
{ ACCOUNT_PARENT, GNC_ID_ACCOUNT, (QofAccessFunc)xaccAccountGetParentAccount, (QofSetterFunc)qofAccountSetParent },
{ QOF_PARAM_BOOK, QOF_ID_BOOK, (QofAccessFunc)qof_instance_get_book, NULL },
{ QOF_PARAM_GUID, QOF_TYPE_GUID, (QofAccessFunc)qof_instance_get_guid, NULL },
More information about the gnucash-changes
mailing list