mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 10:50:10 +00:00
don't iterate past the end of the string, so pango_layout_get_cursor_pos()
2005-07-19 Kristian Rietveld <kris@gtk.org> * gtk/gtkentry.c (gtk_entry_move_forward_word): don't iterate past the end of the string, so pango_layout_get_cursor_pos() won't complain. (#309211, Tommi Komulainen).
This commit is contained in:
parent
5ed2b79897
commit
c45de61fcb
@ -1,3 +1,9 @@
|
||||
2005-07-19 Kristian Rietveld <kris@gtk.org>
|
||||
|
||||
* gtk/gtkentry.c (gtk_entry_move_forward_word): don't iterate
|
||||
past the end of the string, so pango_layout_get_cursor_pos() won't
|
||||
complain. (#309211, Tommi Komulainen).
|
||||
|
||||
2005-07-19 Tor Lillqvist <tml@novell.com>
|
||||
|
||||
* gtk/gtkmain.c (check_sizeof_GtkWindow, check_sizeof_GtkBox):
|
||||
|
@ -1,3 +1,9 @@
|
||||
2005-07-19 Kristian Rietveld <kris@gtk.org>
|
||||
|
||||
* gtk/gtkentry.c (gtk_entry_move_forward_word): don't iterate
|
||||
past the end of the string, so pango_layout_get_cursor_pos() won't
|
||||
complain. (#309211, Tommi Komulainen).
|
||||
|
||||
2005-07-19 Tor Lillqvist <tml@novell.com>
|
||||
|
||||
* gtk/gtkmain.c (check_sizeof_GtkWindow, check_sizeof_GtkBox):
|
||||
|
@ -1,3 +1,9 @@
|
||||
2005-07-19 Kristian Rietveld <kris@gtk.org>
|
||||
|
||||
* gtk/gtkentry.c (gtk_entry_move_forward_word): don't iterate
|
||||
past the end of the string, so pango_layout_get_cursor_pos() won't
|
||||
complain. (#309211, Tommi Komulainen).
|
||||
|
||||
2005-07-19 Tor Lillqvist <tml@novell.com>
|
||||
|
||||
* gtk/gtkmain.c (check_sizeof_GtkWindow, check_sizeof_GtkBox):
|
||||
|
@ -3600,8 +3600,8 @@ gtk_entry_move_forward_word (GtkEntry *entry,
|
||||
|
||||
/* Find the next word boundary */
|
||||
new_pos++;
|
||||
while (new_pos < n_attrs && !(log_attrs[new_pos].is_word_end ||
|
||||
(log_attrs[new_pos].is_word_start && allow_whitespace)))
|
||||
while (new_pos < n_attrs - 1 && !(log_attrs[new_pos].is_word_end ||
|
||||
(log_attrs[new_pos].is_word_start && allow_whitespace)))
|
||||
new_pos++;
|
||||
|
||||
g_free (log_attrs);
|
||||
|
Loading…
Reference in New Issue
Block a user