spepping 2004/11/15 12:58:20
Modified: src/java/org/apache/fop/layoutmgr LineLayoutManager.java
Log:
A quick and dirty hack to prevent the IndexOutOfBoundsException
reported in bug 32174.
Revision Changes Path
1.34 +6 -0
xml-fop/src/java/org/apache/fop/layoutmgr/LineLayoutManager.java
Index: LineLayoutManager.java
===================================================================
RCS file:
/home/cvs/xml-fop/src/java/org/apache/fop/layoutmgr/LineLayoutManager.java,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -r1.33 -r1.34
--- LineLayoutManager.java 13 Nov 2004 20:37:17 -0000 1.33
+++ LineLayoutManager.java 15 Nov 2004 20:58:20 -0000 1.34
@@ -480,6 +480,12 @@
}
knuthPar.endParagraph();
+ // emergency patch
+ if (knuthParagraphs.size() == 0) {
+ setFinished(true);
+ return null;
+ }
+
// find the optimal line breaking points for each paragraph
ListIterator paragraphsIterator
= knuthParagraphs.listIterator(knuthParagraphs.size());
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]