]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
FOP-2224: NPE for SVG text in AFP; patch submitted by Simon Steiner
authorLuis Bernardo <lbernardo@apache.org>
Sat, 16 Mar 2013 00:39:09 +0000 (00:39 +0000)
committerLuis Bernardo <lbernardo@apache.org>
Sat, 16 Mar 2013 00:39:09 +0000 (00:39 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1457183 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/svg/AbstractFOPTextPainter.java

index c41271caa7e92c4b2cf7614637b79a2f5eecff6b..3e16799f44c786d30f47c59f59d5654873620eda 100644 (file)
@@ -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();
     }