Skip to content

Commit

Permalink
Merge Vincent Dawan's 'bug798952-counters' into stable.
Browse files Browse the repository at this point in the history
  • Loading branch information
jralls committed Jun 20, 2023
2 parents b331ec9 + b514245 commit 7381887
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libgnucash/engine/gnc-optiondb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,7 @@ GncOptionDB::load_from_kvp(QofBook* book) noexcept
set_double();
break;
case KvpValue::Type::INT64:
option.set_value(kvp->get<int64_t>());
option.set_value(static_cast<int>(kvp->get<int64_t>()));
break;
case KvpValue::Type::STRING:
fill_option_from_string_kvp(option, kvp);
Expand Down Expand Up @@ -889,7 +889,7 @@ gnc_register_counter_option(GncOptionDB* db, const char* section,
const char* doc_string, int value)
{
GncOption option{GncOptionRangeValue<int>{section, name, key, doc_string,
value, 1, 999999999, 1}};
value, 0, 999999999, 1}};
option.set_alternate(true);
db->register_option(section, std::move(option));
}
Expand Down Expand Up @@ -1205,7 +1205,7 @@ gnc_option_db_book_options(GncOptionDB* odb)
gnc_register_counter_option(odb, counter_section,
N_("Expense voucher number"), "gncExpVouchera",
N_("The previous expense voucher number generated. This number will be incremented to generate the next voucher number."),
0LL);
0);
gnc_register_counter_format_option(odb, counter_section,
N_("Expense voucher number format"),
"gncExpVoucherb",
Expand Down

0 comments on commit 7381887

Please sign in to comment.