aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndreas L. Delmelle <adelmelle@apache.org>2007-09-20 20:11:05 +0000
committerAndreas L. Delmelle <adelmelle@apache.org>2007-09-20 20:11:05 +0000
commitd6787f0a94cce0417170d19a1ce9e02b883bc95b (patch)
tree73c910125c472615e40cae0592e3588135baea77 /src
parente958bfd23d914962790ee0269cbcd3684f71aa7d (diff)
downloadxmlgraphics-fop-d6787f0a94cce0417170d19a1ce9e02b883bc95b.tar.gz
xmlgraphics-fop-d6787f0a94cce0417170d19a1ce9e02b883bc95b.zip
Bugfix: non-collapsed white-space caused ArrayIndexOutOfBoundsException
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@577902 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r--src/java/org/apache/fop/layoutmgr/inline/TextLayoutManager.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/java/org/apache/fop/layoutmgr/inline/TextLayoutManager.java b/src/java/org/apache/fop/layoutmgr/inline/TextLayoutManager.java
index 923c6261e..adb76846c 100644
--- a/src/java/org/apache/fop/layoutmgr/inline/TextLayoutManager.java
+++ b/src/java/org/apache/fop/layoutmgr/inline/TextLayoutManager.java
@@ -806,7 +806,7 @@ public class TextLayoutManager extends LeafNodeLayoutManager {
LeafPosition pos = (LeafPosition) ((KnuthBox) el).getPosition();
int idx = pos.getLeafPos();
//element could refer to '-1' position, for non-collapsed spaces (?)
- if (idx >= -1) {
+ if (idx > -1) {
AreaInfo ai = (AreaInfo) vecAreaInfo.get(idx);
ai.iLScount++;
ai.ipdArea.add(letterSpaceIPD);