mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Register: Don't double-delete when typing over a selection.
In numcell or formulacell.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user