From: Keiron Liddle Date: Tue, 2 Jan 2001 02:30:57 +0000 (+0000) Subject: re-added a check to make sure there is no index array out of bounds error X-Git-Tag: fop-0_17_0~125 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=dc3bae1a3ca86083a93c1c574177d6c48623d42f;p=xmlgraphics-fop.git re-added a check to make sure there is no index array out of bounds error git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193936 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/org/apache/fop/layout/LineArea.java b/src/org/apache/fop/layout/LineArea.java index 6393dc607..9aca8b1ee 100644 --- a/src/org/apache/fop/layout/LineArea.java +++ b/src/org/apache/fop/layout/LineArea.java @@ -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;