From dc3bae1a3ca86083a93c1c574177d6c48623d42f Mon Sep 17 00:00:00 2001 From: Keiron Liddle Date: Tue, 2 Jan 2001 02:30:57 +0000 Subject: [PATCH] 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 --- src/org/apache/fop/layout/LineArea.java | 3 +++ 1 file changed, 3 insertions(+) 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; -- 2.39.5