gnucash maint: Bug 797046 - Tools / Price Database / Currencies UI not working...
John Ralls
jralls at code.gnucash.org
Sun Jan 20 00:30:52 EST 2019
Updated via https://github.com/Gnucash/gnucash/commit/020bc537 (commit)
from https://github.com/Gnucash/gnucash/commit/e31f4c3f (commit)
commit 020bc5371f53bdef057d3ce9fcd115b8e6511658
Author: John Ralls <jralls at ceridwen.us>
Date: Sat Jan 19 14:31:10 2019 -0800
Bug 797046 - Tools / Price Database / Currencies UI not working...
since 3.4.
diff --git a/libgnucash/engine/gnc-pricedb.c b/libgnucash/engine/gnc-pricedb.c
index 6e97e8e..102c2d9 100644
--- a/libgnucash/engine/gnc-pricedb.c
+++ b/libgnucash/engine/gnc-pricedb.c
@@ -2210,7 +2210,7 @@ gnc_pricedb_nth_price (GNCPriceDB *db,
/* Iterate up to n times (there are i prices, so going past i will run off the end of the array) to get the nth price, each time finding the currency
with the latest price */
- for (k = 0; k < n && k < i; ++k)
+ for (k = 0; k <= n && k < i; ++k)
{
next_list = NULL;
for (j = 0; j < i; ++j)
Summary of changes:
libgnucash/engine/gnc-pricedb.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
More information about the gnucash-changes
mailing list