gnucash stable: Fix typo in 5c5b627cb1: Failed to negate condition.

John Ralls jralls at code.gnucash.org
Tue Oct 1 12:46:37 EDT 2024


Updated	 via  https://github.com/Gnucash/gnucash/commit/a0cea975 (commit)
	from  https://github.com/Gnucash/gnucash/commit/78ef5be7 (commit)



commit a0cea97519ae950012fd1660ecb22588ae6f9a46
Author: John Ralls <jralls at ceridwen.us>
Date:   Tue Oct 1 09:42:22 2024 -0700

    Fix typo in 5c5b627cb1: Failed to negate condition.

diff --git a/gnucash/register/ledger-core/split-register-control.cpp b/gnucash/register/ledger-core/split-register-control.cpp
index e213ec8928..edec8787e1 100644
--- a/gnucash/register/ledger-core/split-register-control.cpp
+++ b/gnucash/register/ledger-core/split-register-control.cpp
@@ -416,7 +416,7 @@ gnc_split_register_move_cursor (VirtualLocation *p_new_virt_loc,
         old_split = s;
     old_trans = gnc_split_register_get_current_trans (reg);
     if (auto s{gnc_split_register_get_current_trans_split (reg, &old_trans_split_loc)};
-        is_trading_split(s))
+        !is_trading_split(s))
         old_trans_split = s;
 
     old_class = gnc_split_register_get_current_cursor_class (reg);



Summary of changes:
 gnucash/register/ledger-core/split-register-control.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)



More information about the gnucash-changes mailing list