/[classpath]/classpath/javax/swing/text/DefaultStyledDocument.java
ViewVC logotype

Diff of /classpath/javax/swing/text/DefaultStyledDocument.java

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

revision 1.9 by rabbit78, Tue Sep 13 23:44:50 2005 UTC revision 1.10 by rabbit78, Wed Sep 14 21:26:06 2005 UTC
# Line 1108  public class DefaultStyledDocument exten Line 1108  public class DefaultStyledDocument exten
1108          // joined with the previous element.          // joined with the previous element.
1109          if (specs.size() == 0)          if (specs.size() == 0)
1110            {            {
1111              if (attr.isEqual(prev.getAttributes()))              if (prev.getAttributes().isEqual(attr))
1112                spec.setDirection(ElementSpec.JoinPreviousDirection);                spec.setDirection(ElementSpec.JoinPreviousDirection);
1113            }            }
1114          // Check if we could probably be joined with the next element.          // Check if we could probably be joined with the next element.
1115          else if (attr.isEqual(next.getAttributes()))          else if (next.getAttributes().isEqual(attr))
1116            spec.setDirection(ElementSpec.JoinNextDirection);            spec.setDirection(ElementSpec.JoinNextDirection);
1117    
1118          specs.add(spec);          specs.add(spec);

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

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