From ae8bb62dc50ca3c6a8460f51e4d9ecf2dcc93e17 Mon Sep 17 00:00:00 2001 From: Robert Fewell <14uBobIT@gmail.com> Date: Fri, 11 Oct 2024 10:21:46 +0100 Subject: [PATCH] Bug 799430 - Type-Ahead feature lost account setting functionality When using split autocomplete, the transfer account was not being set due to a change in xaccSplitGetSharePrice in 4.10 that return 0 instead of 1 when there is no price so reflect this change in the following function gnc_find_split_in_trans_by_memo --- gnucash/register/ledger-core/split-register-control.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gnucash/register/ledger-core/split-register-control.cpp b/gnucash/register/ledger-core/split-register-control.cpp index 76fa25b1ea..9b821bb89e 100644 --- a/gnucash/register/ledger-core/split-register-control.cpp +++ b/gnucash/register/ledger-core/split-register-control.cpp @@ -696,7 +696,7 @@ gnc_find_split_in_trans_by_memo (Transaction *trans, const char *memo, if (unit_price) { gnc_numeric price = xaccSplitGetSharePrice (split); - if (!gnc_numeric_equal (price, gnc_numeric_create (1, 1))) + if (!gnc_numeric_zero_p (price)) continue; }