Index: atktext.c
===================================================================
--- atktext.c	(revision 1334)
+++ atktext.c	(working copy)
@@ -950,9 +950,7 @@
 
   g_return_if_fail (ATK_IS_TEXT (text));
   g_return_if_fail (rect);
-
-  if (start_offset < 0 || start_offset >= end_offset)
-    return;
+  g_return_if_fail (start_offset >= 0 && start_offset < end_offset)
  
   iface = ATK_TEXT_GET_IFACE (text);
 
