You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by ad...@apache.org on 2007/09/20 22:11:06 UTC
svn commit: r577902 -
/xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/inline/TextLayoutManager.java
Author: adelmelle
Date: Thu Sep 20 13:11:05 2007
New Revision: 577902
URL: http://svn.apache.org/viewvc?rev=577902&view=rev
Log:
Bugfix: non-collapsed white-space caused ArrayIndexOutOfBoundsException
Modified:
xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/inline/TextLayoutManager.java
Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/inline/TextLayoutManager.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/inline/TextLayoutManager.java?rev=577902&r1=577901&r2=577902&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/inline/TextLayoutManager.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/inline/TextLayoutManager.java Thu Sep 20 13:11:05 2007
@@ -806,7 +806,7 @@
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);
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-commits-help@xmlgraphics.apache.org