forked from AuroraMiddleware/gtk
handle case where offset == 0 and char_len == 0, bug #61729
2001-10-23 Havoc Pennington <hp@redhat.com> * gtk/gtktextiter.c (test_log_attrs): handle case where offset == 0 and char_len == 0, bug #61729
This commit is contained in:
parent
85cdc1cec3
commit
10f47690ea
@ -1,3 +1,8 @@
|
||||
2001-10-23 Havoc Pennington <hp@redhat.com>
|
||||
|
||||
* gtk/gtktextiter.c (test_log_attrs): handle case where offset ==
|
||||
0 and char_len == 0, bug #61729
|
||||
|
||||
2001-10-23 Havoc Pennington <hp@redhat.com>
|
||||
|
||||
* gtk/gtktextiter.c (gtk_text_iter_forward_cursor_positions): fix
|
||||
|
@ -1,3 +1,8 @@
|
||||
2001-10-23 Havoc Pennington <hp@redhat.com>
|
||||
|
||||
* gtk/gtktextiter.c (test_log_attrs): handle case where offset ==
|
||||
0 and char_len == 0, bug #61729
|
||||
|
||||
2001-10-23 Havoc Pennington <hp@redhat.com>
|
||||
|
||||
* gtk/gtktextiter.c (gtk_text_iter_forward_cursor_positions): fix
|
||||
|
@ -1,3 +1,8 @@
|
||||
2001-10-23 Havoc Pennington <hp@redhat.com>
|
||||
|
||||
* gtk/gtktextiter.c (test_log_attrs): handle case where offset ==
|
||||
0 and char_len == 0, bug #61729
|
||||
|
||||
2001-10-23 Havoc Pennington <hp@redhat.com>
|
||||
|
||||
* gtk/gtktextiter.c (gtk_text_iter_forward_cursor_positions): fix
|
||||
|
@ -1,3 +1,8 @@
|
||||
2001-10-23 Havoc Pennington <hp@redhat.com>
|
||||
|
||||
* gtk/gtktextiter.c (test_log_attrs): handle case where offset ==
|
||||
0 and char_len == 0, bug #61729
|
||||
|
||||
2001-10-23 Havoc Pennington <hp@redhat.com>
|
||||
|
||||
* gtk/gtktextiter.c (gtk_text_iter_forward_cursor_positions): fix
|
||||
|
@ -1,3 +1,8 @@
|
||||
2001-10-23 Havoc Pennington <hp@redhat.com>
|
||||
|
||||
* gtk/gtktextiter.c (test_log_attrs): handle case where offset ==
|
||||
0 and char_len == 0, bug #61729
|
||||
|
||||
2001-10-23 Havoc Pennington <hp@redhat.com>
|
||||
|
||||
* gtk/gtktextiter.c (gtk_text_iter_forward_cursor_positions): fix
|
||||
|
@ -1,3 +1,8 @@
|
||||
2001-10-23 Havoc Pennington <hp@redhat.com>
|
||||
|
||||
* gtk/gtktextiter.c (test_log_attrs): handle case where offset ==
|
||||
0 and char_len == 0, bug #61729
|
||||
|
||||
2001-10-23 Havoc Pennington <hp@redhat.com>
|
||||
|
||||
* gtk/gtktextiter.c (gtk_text_iter_forward_cursor_positions): fix
|
||||
|
@ -1,3 +1,8 @@
|
||||
2001-10-23 Havoc Pennington <hp@redhat.com>
|
||||
|
||||
* gtk/gtktextiter.c (test_log_attrs): handle case where offset ==
|
||||
0 and char_len == 0, bug #61729
|
||||
|
||||
2001-10-23 Havoc Pennington <hp@redhat.com>
|
||||
|
||||
* gtk/gtktextiter.c (gtk_text_iter_forward_cursor_positions): fix
|
||||
|
@ -2869,7 +2869,7 @@ test_log_attrs (const GtkTextIter *iter,
|
||||
* for one past the end
|
||||
*/
|
||||
|
||||
if (offset <= char_len)
|
||||
if (attrs && offset <= char_len)
|
||||
result = (* func) (attrs, offset, 0, char_len);
|
||||
|
||||
return result;
|
||||
|
Loading…
Reference in New Issue
Block a user