From 217289d0370c22b96cdbd8c10df783a753f26776 Mon Sep 17 00:00:00 2001 From: Alex Aycinena Date: Thu, 17 Jan 2019 12:32:33 -0800 Subject: [PATCH] Bug #796687, Tax entity name and type don't get saved. Change frame->set to frame->set_path to create missing frames. --- libgnucash/engine/qofbook.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libgnucash/engine/qofbook.cpp b/libgnucash/engine/qofbook.cpp index c0cb043ba5..fa67f5b653 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); }