You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by le...@locus.apache.org on 2000/11/10 20:11:13 UTC
cvs commit: xml-xerces/java/src/org/apache/xerces/dom TextImpl.java
lehors 00/11/10 11:11:12
Modified: java/src/org/apache/xerces/dom TextImpl.java
Log:
Allow splitting at the end of the node (offset = length)
- patch from Lynn Monson
Revision Changes Path
1.9 +1 -1 xml-xerces/java/src/org/apache/xerces/dom/TextImpl.java
Index: TextImpl.java
===================================================================
RCS file: /home/cvs/xml-xerces/java/src/org/apache/xerces/dom/TextImpl.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- TextImpl.java 2000/10/02 21:58:22 1.8
+++ TextImpl.java 2000/11/10 19:11:12 1.9
@@ -169,7 +169,7 @@
if (needsSyncData()) {
synchronizeData();
}
- if (offset < 0 || offset > data.length() - 1) {
+ if (offset < 0 || offset > data.length() ) {
throw new DOMException(DOMException.INDEX_SIZE_ERR,
"DOM004 Index out of bounds");
}