Bug 797781 - Num Field Regression - characters in wrong order when typed.

This commit is contained in:
John Ralls 2020-06-05 12:06:23 -07:00
parent cee479f4f4
commit e4e36e6843

View File

@ -991,7 +991,10 @@ make_new_text (GnucashSheet *sheet, const char* new_text, int *position)
int insert_length = g_utf8_strlen (new_text, -1);
if (!old_text || old_length == 0)
{
*position = insert_length;
return g_strdup(new_text);
}
gtk_editable_get_selection_bounds (editable, &bound, &pos);
normalize_selection_bounds (&pos, &bound, old_length);