summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuis Bernardo <lbernardo@apache.org>2013-03-16 00:39:09 +0000
committerLuis Bernardo <lbernardo@apache.org>2013-03-16 00:39:09 +0000
commitec3a8a819dba4ddc61c040e649d9ec41b5c65c97 (patch)
treed03f238d9dddb5b3011b1c0bcf341ccd63fb1eb0
parent1a57c79591d32f4a45ccf479836b033ed96b5541 (diff)
downloadxmlgraphics-fop-ec3a8a819dba4ddc61c040e649d9ec41b5c65c97.tar.gz
xmlgraphics-fop-ec3a8a819dba4ddc61c040e649d9ec41b5c65c97.zip
FOP-2224: NPE for SVG text in AFP; patch submitted by Simon Steiner
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1457183 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--src/java/org/apache/fop/svg/AbstractFOPTextPainter.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/java/org/apache/fop/svg/AbstractFOPTextPainter.java b/src/java/org/apache/fop/svg/AbstractFOPTextPainter.java
index c41271caa..3e16799f4 100644
--- a/src/java/org/apache/fop/svg/AbstractFOPTextPainter.java
+++ b/src/java/org/apache/fop/svg/AbstractFOPTextPainter.java
@@ -305,6 +305,7 @@ public abstract class AbstractFOPTextPainter implements TextPainter {
for (char c = aci.first(); c != CharacterIterator.DONE; c = aci.next()) {
sb.append(c);
}
+ aci.first();
return sb.toString();
}