gnucash maint: Bug 797839 - Auto-complete prevents entering non-ASCII transaction descriptions
John Ralls
jralls at code.gnucash.org
Mon Aug 3 16:17:08 EDT 2020
Updated via https://github.com/Gnucash/gnucash/commit/67fb2576 (commit)
from https://github.com/Gnucash/gnucash/commit/f35a2688 (commit)
commit 67fb257641e62b624f05a213a6b5fcbce2ef3328
Author: John Ralls <jralls at ceridwen.us>
Date: Mon Aug 3 13:15:19 2020 -0700
Bug 797839 - Auto-complete prevents entering non-ASCII transaction descriptions
Try #2. Passing the wrong kind of string length to table_modify_update.
diff --git a/gnucash/register/register-gnome/gnucash-sheet.c b/gnucash/register/register-gnome/gnucash-sheet.c
index fd2ea8113..52a63f51f 100644
--- a/gnucash/register/register-gnome/gnucash-sheet.c
+++ b/gnucash/register/register-gnome/gnucash-sheet.c
@@ -1185,7 +1185,7 @@ gnucash_sheet_delete_cb (GtkWidget *widget,
return;
new_text = delete_text (sheet, start_pos, end_pos);
- new_text_len = g_utf8_strlen (new_text, -1);
+ new_text_len = strlen (new_text);
editable = GTK_EDITABLE (sheet->entry);
gtk_editable_get_selection_bounds (editable, &start_sel, &end_sel);
retval = gnc_table_modify_update (table, virt_loc,
Summary of changes:
gnucash/register/register-gnome/gnucash-sheet.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
More information about the gnucash-changes
mailing list