CVSROOT: /cvsroot/classpath Module name: classpath Branch: Changes by: Lillian Angel <[EMAIL PROTECTED]> 06/01/23 16:14:29
Modified files: . : ChangeLog javax/swing/text: DefaultStyledDocument.java Log message: 2006-01-23 Lillian Angel <[EMAIL PROTECTED]> * javax/swing/text/DefaultStyledDocument.java (insertFirstContentTag): Moved check outside of if-statement. This should be checked before creating the new leaf element. (insertFracture): Fixed check to prevent an NPE. The previous leaf should only be recreated if it has been created by insertFirstContentTag. Also, fixed up code: if the endOffset is greater than the offset, then we need to create a temp leaf as a place holder. Otherwise, the leaf elements should be created normally. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/ChangeLog.diff?tr1=1.6147&tr2=1.6148&r1=text&r2=text http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/javax/swing/text/DefaultStyledDocument.java.diff?tr1=1.43&tr2=1.44&r1=text&r2=text