--- /home/cpdev/src/classpath/java/text/AttributedStringIterator.java	2005-07-02 21:03:43.000000000 +0000
+++ java/text/AttributedStringIterator.java	2005-06-30 05:34:47.000000000 +0000
@@ -1,5 +1,5 @@
 /* AttributedStringIterator.java -- Class to iterate over AttributedString
-   Copyright (C) 1998, 1999, 2004, 2005 Free Software Foundation, Inc.
+   Copyright (C) 1998, 1999, 2004 Free Software Foundation, Inc.
 
 This file is part of GNU Classpath.
 
@@ -228,7 +228,7 @@
   for (int i = 0; i < attribs.length; ++i)
     {
       if (pos >= attribs[i].begin_index &&
-          pos < attribs[i].end_index)
+          pos <= attribs[i].end_index)
         {
           Iterator iter = attribute_set.iterator();
           while(iter.hasNext()) 
@@ -242,7 +242,7 @@
   if (hit)
     return runLimit;
   else
-    return ci.getEndIndex();
+    return -1;
 }
 
 /*************************************************************************/
