mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Bug 797781 - Num Field Regression - characters in wrong order when typed.
This commit is contained in:
parent
cee479f4f4
commit
e4e36e6843
@ -991,7 +991,10 @@ make_new_text (GnucashSheet *sheet, const char* new_text, int *position)
|
|||||||
int insert_length = g_utf8_strlen (new_text, -1);
|
int insert_length = g_utf8_strlen (new_text, -1);
|
||||||
|
|
||||||
if (!old_text || old_length == 0)
|
if (!old_text || old_length == 0)
|
||||||
|
{
|
||||||
|
*position = insert_length;
|
||||||
return g_strdup(new_text);
|
return g_strdup(new_text);
|
||||||
|
}
|
||||||
|
|
||||||
gtk_editable_get_selection_bounds (editable, &bound, &pos);
|
gtk_editable_get_selection_bounds (editable, &bound, &pos);
|
||||||
normalize_selection_bounds (&pos, &bound, old_length);
|
normalize_selection_bounds (&pos, &bound, old_length);
|
||||||
|
Loading…
Reference in New Issue
Block a user