gnucash maint: Bug 798186 - Incorrect result editting account in register when...

John Ralls jralls at code.gnucash.org
Thu Jun 17 19:58:10 EDT 2021


Updated	 via  https://github.com/Gnucash/gnucash/commit/6a7b3791 (commit)
	from  https://github.com/Gnucash/gnucash/commit/b6beb407 (commit)



commit 6a7b3791e6a43737ec7e001346ab05b5a48503c7
Author: John Ralls <jralls at ceridwen.us>
Date:   Thu Jun 17 16:56:03 2021 -0700

    Bug 798186 - Incorrect result editting account in register when...
    
    overtyping a part selection.
    
    Because the selection got deleted twice. Clear the selection after
    the first delete.

diff --git a/gnucash/register/register-gnome/combocell-gnome.c b/gnucash/register/register-gnome/combocell-gnome.c
index 7e4e243a3..f3481dd46 100644
--- a/gnucash/register/register-gnome/combocell-gnome.c
+++ b/gnucash/register/register-gnome/combocell-gnome.c
@@ -629,6 +629,7 @@ gnc_combo_cell_modify_verify (BasicCell* _cell,
         if (change == NULL || *cursor_position < _cell->value_chars)
         {
             gnc_basic_cell_set_value_internal (_cell, newval);
+            *start_selection = *end_selection = *cursor_position;
             return;
         }
         match_str = quickfill_match (box->qf, newval);



Summary of changes:
 gnucash/register/register-gnome/combocell-gnome.c | 1 +
 1 file changed, 1 insertion(+)



More information about the gnucash-changes mailing list