gnucash stable: Bug 799502 - Autocomplete of split only completes description
Robert Fewell
bobit at code.gnucash.org
Mon Jan 6 06:11:39 EST 2025
Updated via https://github.com/Gnucash/gnucash/commit/5ff2c190 (commit)
from https://github.com/Gnucash/gnucash/commit/166b3835 (commit)
commit 5ff2c190eb735f05c3cc4167a8e4a2f6192ccdd1
Author: Robert Fewell <14uBobIT at gmail.com>
Date: Mon Jan 6 11:05:41 2025 +0000
Bug 799502 - Autocomplete of split only completes description
This commit fixes a regression when bug 799430 was fixed, should of
added to the if condition instead of replacing it.
diff --git a/gnucash/register/ledger-core/split-register-control.cpp b/gnucash/register/ledger-core/split-register-control.cpp
index 5e9bda9672..52400915cd 100644
--- a/gnucash/register/ledger-core/split-register-control.cpp
+++ b/gnucash/register/ledger-core/split-register-control.cpp
@@ -697,7 +697,8 @@ gnc_find_split_in_trans_by_memo (Transaction *trans, const char *memo,
if (unit_price)
{
gnc_numeric price = xaccSplitGetSharePrice (split);
- if (!gnc_numeric_zero_p (price))
+ if (!gnc_numeric_equal (price, gnc_numeric_create (1, 1)) &&
+ !gnc_numeric_zero_p (price))
continue;
}
Summary of changes:
gnucash/register/ledger-core/split-register-control.cpp | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
More information about the gnucash-changes
mailing list