aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org
diff options
context:
space:
mode:
authorJeremias Maerki <jeremias@apache.org>2009-01-05 07:38:43 +0000
committerJeremias Maerki <jeremias@apache.org>2009-01-05 07:38:43 +0000
commit011fd36fcef0003a63e9dc8da3233fd18c7889fb (patch)
tree7ba046882291ec28b5f4c9d7de989ed877a78008 /src/java/org
parent01ceb0032ead03d9c35abeee9075dabc3702fc7f (diff)
downloadxmlgraphics-fop-011fd36fcef0003a63e9dc8da3233fd18c7889fb.tar.gz
xmlgraphics-fop-011fd36fcef0003a63e9dc8da3233fd18c7889fb.zip
Avoid ArrayOutOfBoundsException when text length is 0 (this can happen if you specify a soft hyphen as only content of a block, for example).
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AreaTreeNewDesign@731478 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org')
-rw-r--r--src/java/org/apache/fop/render/intermediate/IFRenderer.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/java/org/apache/fop/render/intermediate/IFRenderer.java b/src/java/org/apache/fop/render/intermediate/IFRenderer.java
index 6ff96d18e..abef34e22 100644
--- a/src/java/org/apache/fop/render/intermediate/IFRenderer.java
+++ b/src/java/org/apache/fop/render/intermediate/IFRenderer.java
@@ -1031,6 +1031,9 @@ public class IFRenderer extends AbstractPathOrientedRenderer {
int[] letterAdjust,
Font font, AbstractTextArea parentArea) {
int l = s.length();
+ if (l == 0) {
+ return;
+ }
if (letterAdjust != null) {
textUtil.adjust(letterAdjust[0]);