GNOME Bugzilla – Bug 599953
gnc:make-[complex|simple]-boolean-option doesn't store its value
Last modified: 2018-06-29 22:30:10 UTC
Created attachment 146451 [details] [review] Patch to store boolean options as a string Neither gnc:make-complex-boolean-option nor gnc:make-simple-boolean-option (which calls it) correctly stores its result in the KVP that it is using. This is because it calls kvp-frame-get-slot-path-gslist and kvp-frame-set-slot-path-gslist to get and set the value. Both of these are implemented in C and the code in kvp-scm.c can't convert a Scheme boolean value to or from a KvpValue since there is no boolean type in KvpValue. There are already a few places that have comments suggesting that there should be a KVP_TYPE_BOOLEAN type, but adding this would be non-trivial. For now I'll supply a patch that will store the boolean value as a string (which is what code in xaccAccountSetAutoInterestXfer in Account.c does).
Comment on attachment 146451 [details] [review] Patch to store boolean options as a string r18404 (with comment lines added by me), thanks a lot!
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=599953. Please update any external references or bookmarks.