Index: text.c
===================================================================
RCS file: /cvs/gnome/gtkhtml/a11y/text.c,v
retrieving revision 1.19
diff -u -p -r1.19 text.c
--- text.c	28 Feb 2006 09:37:56 -0000	1.19
+++ text.c	10 Mar 2006 12:50:30 -0000
@@ -430,10 +430,14 @@ html_a11y_text_get_text (AtkText *text, 
 	if (end_offset == -1)
 		end_offset = to->text_len;
 
-	g_return_val_if_fail (start_offset <= end_offset, NULL);
-	g_return_val_if_fail (start_offset >= 0, NULL);
-	g_return_val_if_fail (start_offset <= to->text_len, NULL);
-	g_return_val_if_fail (end_offset <= to->text_len, NULL);
+	if (start_offset > end_offset)
+		return NULL;
+	if (start_offset < 0)
+		return NULL;
+	if (start_offset > to->text_len)
+		return NULL;
+	if (end_offset > to->text_len)
+		return NULL;
 
 	str = html_text_get_text (to, start_offset);
 
