gnucash maint: Bug #796687, Tax entity name and type don't get saved. Change frame->set to frame->set_path to create missing frames.

J.Alex Aycinena alex.aycinena at code.gnucash.org
Thu Jan 17 15:33:17 EST 2019


Updated	 via  https://github.com/Gnucash/gnucash/commit/217289d0 (commit)
	from  https://github.com/Gnucash/gnucash/commit/8f4f8a1d (commit)



commit 217289d0370c22b96cdbd8c10df783a753f26776
Author: Alex Aycinena <alex.aycinena at gmail.com>
Date:   Thu Jan 17 12:32:33 2019 -0800

    Bug #796687, Tax entity name and type don't get saved. Change frame->set to frame->set_path to create missing frames.

diff --git a/libgnucash/engine/qofbook.cpp b/libgnucash/engine/qofbook.cpp
index c0cb043..fa67f5b 100644
--- a/libgnucash/engine/qofbook.cpp
+++ b/libgnucash/engine/qofbook.cpp
@@ -1164,9 +1164,9 @@ qof_book_set_string_option(QofBook* book, const char* opt_name, const char* opt_
     auto frame = qof_instance_get_slots(QOF_INSTANCE(book));
     auto opt_path = opt_name_to_path(opt_name);
     if (opt_val && (*opt_val != '\0'))
-        delete frame->set(opt_path, new KvpValue(g_strdup(opt_val)));
+        delete frame->set_path(opt_path, new KvpValue(g_strdup(opt_val)));
     else
-        delete frame->set(opt_path, nullptr);
+        delete frame->set_path(opt_path, nullptr);
     qof_instance_set_dirty (QOF_INSTANCE (book));
     qof_book_commit_edit(book);
 }



Summary of changes:
 libgnucash/engine/qofbook.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)



More information about the gnucash-changes mailing list