mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
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:
parent
cf8b8b7a23
commit
993a1a228e
@ -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
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user