/[classpath]/classpath/java/text/AttributedStringIterator.java
ViewVC logotype

Diff of /classpath/java/text/AttributedStringIterator.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.7 by robilad, Fri Apr 23 16:03:10 2004 UTC revision 1.8 by ziga, Mon Jun 13 20:44:38 2005 UTC
# Line 1  Line 1 
1  /* AttributedStringIterator.java -- Class to iterate over AttributedString  /* AttributedStringIterator.java -- Class to iterate over AttributedString
2     Copyright (C) 1998, 1999, 2004 Free Software Foundation, Inc.     Copyright (C) 1998, 1999, 2004, 2005 Free Software Foundation, Inc.
3    
4  This file is part of GNU Classpath.  This file is part of GNU Classpath.
5    
# Line 228  getRunLimit(Set attribute_set) Line 228  getRunLimit(Set attribute_set)
228    for (int i = 0; i < attribs.length; ++i)    for (int i = 0; i < attribs.length; ++i)
229      {      {
230        if (pos >= attribs[i].begin_index &&        if (pos >= attribs[i].begin_index &&
231            pos <= attribs[i].end_index)            pos < attribs[i].end_index)
232          {          {
233            Iterator iter = attribute_set.iterator();            Iterator iter = attribute_set.iterator();
234            while(iter.hasNext())            while(iter.hasNext())
# Line 242  getRunLimit(Set attribute_set) Line 242  getRunLimit(Set attribute_set)
242    if (hit)    if (hit)
243      return runLimit;      return runLimit;
244    else    else
245      return -1;      return ci.getEndIndex();
246  }  }
247    
248  /*************************************************************************/  /*************************************************************************/

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26