]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
bug fixed, which caused runtime-exception on leading whitespaces
authorPeter Herweg <pherweg@apache.org>
Tue, 13 Jul 2004 20:59:02 +0000 (20:59 +0000)
committerPeter Herweg <pherweg@apache.org>
Tue, 13 Jul 2004 20:59:02 +0000 (20:59 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197787 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/render/rtf/RTFHandler.java

index 21587b77cfb74b0d367171166761675b97a8c5aa..bf23e5c716bfcacb76cf015d68c431a89f304fb6 100644 (file)
@@ -1080,7 +1080,7 @@ public class RTFHandler extends FOInputHandler {
                     IRtfTextrunContainer.class, true, this);
                     
             RtfTextrun textrun = container.getTextrun();
-            textrun.addString(new String(data, start, length));
+            textrun.addString(new String(data, start, length-start));
          } catch (IOException ioe) {
             // FIXME could we throw Exception in all FOInputHandler events?
             log.error("characters: " + ioe.getMessage());