Register: Don't double-delete when typing over a selection.

In numcell or formulacell.
This commit is contained in:
John Ralls
2020-11-24 14:53:34 -08:00
parent a1c517b4ba
commit 1bf863d9a1
2 changed files with 4 additions and 0 deletions

View File

@@ -151,6 +151,8 @@ gnc_formula_cell_modify_verify( BasicCell *_cell,
if (change == NULL)
{
gnc_basic_cell_set_value_internal( &cell->cell, newval );
// Remove any selection.
*end_selection = *start_selection = *cursor_position;
return;
}

View File

@@ -92,6 +92,8 @@ gnc_num_cell_modify_verify (BasicCell *_cell,
/* then just accept the proposed change */
{
gnc_basic_cell_set_value_internal (&cell->cell, newval);
// Remove any selection.
*end_selection = *start_selection = *cursor_position;
return;
}