Return the number of characters entered, not the length of the encoded

multi-byte string. Possible fix for 99419 and 102057.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7815 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
David Hampton 2003-01-12 21:15:00 +00:00
parent cf8b8b7a23
commit 993a1a228e
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,10 @@
2003-01-12 David Hampton <hampton@employees.org>
* src/register/register-gnome/gnucash-sheet.c
(gnucash_sheet_insert_cb): Return the number of characters
entered, not the length of the encoded multi-byte string. Possible
fix for 99419 and 102057.
2003-01-11 Derek Atkins <derek@ihtfp.com>
* src/business/business-core/gncBusGuile.[ch]: functions to interface

View File

@ -906,7 +906,7 @@ gnucash_sheet_insert_cb (GtkWidget *widget,
}
if (*position < 0)
*position = strlen (retval);
*position = gnc_mbstowcs(NULL, retval);
gtk_entry_select_region (GTK_ENTRY(sheet->entry), start_sel, end_sel);