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:
Havoc Pennington 2001-10-23 19:31:56 +00:00 committed by Havoc Pennington
parent 85cdc1cec3
commit 10f47690ea
8 changed files with 36 additions and 1 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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;