]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
re-added a check to make sure there is no index array out of bounds error
authorKeiron Liddle <keiron@apache.org>
Tue, 2 Jan 2001 02:30:57 +0000 (02:30 +0000)
committerKeiron Liddle <keiron@apache.org>
Tue, 2 Jan 2001 02:30:57 +0000 (02:30 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193936 13f79535-47bb-0310-9956-ffa450edef68

src/org/apache/fop/layout/LineArea.java

index 6393dc607824e0abd738d0b2d48f3ca3c733bd2e..9aca8b1eee1a92fd146a890bc69d1fa88bc217bf 100644 (file)
@@ -199,6 +199,9 @@ public class LineArea extends Area {
        */
     public int addText(char odata[], int start, int end, LinkSet ls,
                        boolean ul) {
+        // this prevents an array index out of bounds
+        // which occurs when some text is laid out again.
+        if(start == -1) return -1;
         boolean overrun = false;
 
         wordStart = start;