You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by ke...@apache.org on 2002/06/17 14:25:36 UTC
cvs commit: xml-fop/src/org/apache/fop/fo FOText.java
keiron 2002/06/17 05:25:36
Modified: src/org/apache/fop/fo FOText.java
Log:
prevent exception
Revision Changes Path
1.36 +4 -2 xml-fop/src/org/apache/fop/fo/FOText.java
Index: FOText.java
===================================================================
RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/FOText.java,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -r1.35 -r1.36
--- FOText.java 5 Jun 2002 14:52:27 -0000 1.35
+++ FOText.java 17 Jun 2002 12:25:36 -0000 1.36
@@ -81,7 +81,9 @@
}
public void addLayoutManager(List list) {
- // What if nothing left (length=0)?
+ // if nothing left (length=0)?
+ if(length == 0) return;
+
if (length < ca.length) {
char[] tmp = ca;
ca = new char[length];
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-cvs-help@xml.apache.org