[Gnucash-changes] Fix ACCOUNT_NSCU Qof Param getter.
Derek Atkins
warlord at cvs.gnucash.org
Sun Jan 30 11:16:37 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.
Modified Files:
--------------
gnucash/src/engine:
Account.c
Revision Data
-------------
Index: Account.c
===================================================================
RCS file: /home/cvs/cvsroot/gnucash/src/engine/Account.c,v
retrieving revision 1.279
retrieving revision 1.280
diff -Lsrc/engine/Account.c -Lsrc/engine/Account.c -u -r1.279 -r1.280
--- 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