Skip to content

Commit

Permalink
Bug 799502 - Autocomplete of split only completes description
Browse files Browse the repository at this point in the history
This commit fixes a regression when bug 799430 was fixed, should of
added to the if condition instead of replacing it.
  • Loading branch information
Bob-IT committed Jan 6, 2025
1 parent 166b383 commit 5ff2c19
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gnucash/register/ledger-core/split-register-control.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 5ff2c19

Please sign in to comment.